Add flake8 to setup.cfg and add missed change to #2303 fix

This commit is contained in:
Calum Lind 2013-05-22 23:33:06 +01:00
parent e3f3b6d751
commit 7dd276631a
2 changed files with 7 additions and 2 deletions

View File

@ -888,9 +888,10 @@ class TorrentManager(component.Component):
torrent.update_state()
if not torrent.is_finished and total_download:
torrent.is_finished = True
component.get("EventManager").emit(TorrentFinishedEvent(torrent_id))
torrent.is_finished = True
else:
torrent.is_finished = True
# Torrent is no longer part of the queue
try:

View File

@ -13,3 +13,7 @@ includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms,
twisted.internet, twisted.internet.utils, twisted.protocols,
zope.interface, mako.cache, email.mime, libtorrent, gtkosx_application
frameworks = CoreFoundation, Foundation, AppKit
[flake8]
max-line-length = 120
builtins = _