From c6ee8cf39d10245fe27d7758b26cf2d53ce541e3 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 8 Jul 2011 10:03:04 +0100 Subject: [PATCH] Do not use Ellipsis. --- deluge/core/torrentmanager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 3c289a676..3f95bb014 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"