pep: fix e262

This commit is contained in:
satreix
2016-02-26 19:33:30 +01:00
parent 0ac947099c
commit a4c9990df1
2 changed files with 2 additions and 3 deletions

3
.pep8
View File

@@ -7,9 +7,8 @@
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# E261 at least two spaces before inline comment
# E262 inline comment should start with '# '
# E265 block comment should start with '# '
# E501 line too long (312 > 160 characters)
# E502 the backslash is redundant between brackets
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E261,E262,E265,E501,E502
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E261,E265,E501,E502
max-line-length = 160

View File

@@ -1779,7 +1779,7 @@ def preprocess(resultlist):
return ruobj.get_torrent_data(result[2]), result
# Get out of here if we're using Transmission
if headphones.CONFIG.TORRENT_DOWNLOADER == 1: ## if not a magnet link still need the .torrent to generate hash... uTorrent support labeling
if headphones.CONFIG.TORRENT_DOWNLOADER == 1: # if not a magnet link still need the .torrent to generate hash... uTorrent support labeling
return True, result
# Get out of here if it's a magnet link
if result[2].lower().startswith("magnet:"):