Fix PEP8 warnings for Nyaa.py

This commit is contained in:
Kirill Isakov 2016-03-27 05:23:17 +06:00
parent a8832574fa
commit e202c6fbec
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ def int_or_zero(num):
return int(num) return int(num)
return 0 return 0
# get multiplier to convert torrent size to bytes # get multiplier to convert torrent size to bytes
def get_filesize_mul(suffix): def get_filesize_mul(suffix):
return { return {
@ -57,6 +58,7 @@ def get_filesize_mul(suffix):
'TIB': 1024 ** 4 'TIB': 1024 ** 4
}[str(suffix).upper()] }[str(suffix).upper()]
# do search-request # do search-request
def request(query, params): def request(query, params):
query = urlencode({'term': query}) query = urlencode({'term': query})