PEP8 (a run of lint.sh)

This commit is contained in:
sharkykh
2017-05-14 09:25:01 +03:00
committed by Kfir Hadas
parent 00c768c722
commit a79c0f8a93
6 changed files with 24 additions and 12 deletions

View File

@@ -209,7 +209,7 @@ class UploadForm(FlaskForm):
# Decode and ensure data is bencoded data
try:
torrent_dict = bencode.decode(field.data)
#field.data.close()
# field.data.close()
except (bencode.MalformedBencodeException, UnicodeError):
raise ValidationError('Malformed torrent file')
@@ -266,7 +266,12 @@ class TorrentFileData(object):
# https://wiki.theory.org/BitTorrentSpecification#Metainfo_File_Structure
<<<<<<< master
def _validate_trackers(torrent_dict, tracker_to_check_for=None):
=======
def _validate_trackers(torrent_dict):
>>>>>>> PEP8 (a run of lint.sh)
announce = torrent_dict.get('announce')
announce_string = _validate_bytes(announce, 'announce', 'utf-8')