Do not use Ellipsis.

This commit is contained in:
Pedro Algarvio 2011-07-08 10:03:04 +01:00
parent bd7bbc4e33
commit c6ee8cf39d
1 changed files with 2 additions and 3 deletions

View File

@ -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"