Module: deluge Branch: master Commit: c6ee8cf39d10245fe27d7758b26cf2d53ce541e3
Author: Pedro Algarvio <pe...@algarvio.me> Date: Fri Jul 8 10:03:04 2011 +0100 Do not use Ellipsis. --- deluge/core/torrentmanager.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 3c289a6..3f95bb0 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -344,11 +344,10 @@ class TorrentManager(component.Component): log.warning("Unable to delete the fastresume file: %s", e) def add(self, torrent_info=None, state=None, options=None, save_state=True, - filedump=None, filename=None, magnet=None, resume_data=None, - owner=Ellipsis): + filedump=None, filename=None, magnet=None, resume_data=None, owner=None): """Add a torrent to the manager and returns it's torrent_id""" - if owner is Ellipsis: + if owner is None: owner = component.get("RPCServer").get_session_user() if not owner: owner = "localclient" -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to deluge-commit@googlegroups.com. To unsubscribe from this group, send email to deluge-commit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.