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) log.warning("Unable to delete the fastresume file: %s", e)
def add(self, torrent_info=None, state=None, options=None, save_state=True, def add(self, torrent_info=None, state=None, options=None, save_state=True,
filedump=None, filename=None, magnet=None, resume_data=None, filedump=None, filename=None, magnet=None, resume_data=None, owner=None):
owner=Ellipsis):
"""Add a torrent to the manager and returns it's torrent_id""" """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() owner = component.get("RPCServer").get_session_user()
if not owner: if not owner:
owner = "localclient" owner = "localclient"