diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-08-27 08:18:44 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-08-27 08:18:44 (GMT) |
commit | 880471bb2e97bf2d5a6b7226f70f31c1a4b12a1f (patch) | |
tree | 6817a12dcd237ef243da791ed5012a47d84a27db | |
parent | eff58e9030d6d3962b77110365ad52efb904f45b (diff) |
Use the global variable in the namespace already for reading
This is only to avoid a syntax warning but has not caused
any bad state
-rw-r--r-- | downloadmanager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/downloadmanager.py b/downloadmanager.py index 607aefc..64b1d17 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -269,10 +269,10 @@ class Download: def __datastore_deleted_cb(self, uid): logging.debug('Downloaded entry has been deleted from the datastore: %r' % uid) + global _active_downloads if self in _active_downloads: # TODO: Use NS_BINDING_ABORTED instead of NS_ERROR_FAILURE. self.cancelable.cancel(NS_ERROR_FAILURE) #NS_BINDING_ABORTED) - global _active_downloads _active_downloads.remove(self) components.registrar.registerFactory('{23c51569-e9a1-4a92-adeb-3723db82ef7c}', |