Add flake8 to setup.cfg and add missed change to #2303 fix
This commit is contained in:
parent
e3f3b6d751
commit
7dd276631a
@ -888,9 +888,10 @@ class TorrentManager(component.Component):
|
|||||||
|
|
||||||
torrent.update_state()
|
torrent.update_state()
|
||||||
if not torrent.is_finished and total_download:
|
if not torrent.is_finished and total_download:
|
||||||
|
torrent.is_finished = True
|
||||||
component.get("EventManager").emit(TorrentFinishedEvent(torrent_id))
|
component.get("EventManager").emit(TorrentFinishedEvent(torrent_id))
|
||||||
|
else:
|
||||||
torrent.is_finished = True
|
torrent.is_finished = True
|
||||||
|
|
||||||
# Torrent is no longer part of the queue
|
# Torrent is no longer part of the queue
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -13,3 +13,7 @@ includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms,
|
|||||||
twisted.internet, twisted.internet.utils, twisted.protocols,
|
twisted.internet, twisted.internet.utils, twisted.protocols,
|
||||||
zope.interface, mako.cache, email.mime, libtorrent, gtkosx_application
|
zope.interface, mako.cache, email.mime, libtorrent, gtkosx_application
|
||||||
frameworks = CoreFoundation, Foundation, AppKit
|
frameworks = CoreFoundation, Foundation, AppKit
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
max-line-length = 120
|
||||||
|
builtins = _
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user