From 880471bb2e97bf2d5a6b7226f70f31c1a4b12a1f Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Wed, 27 Aug 2008 08:18:44 +0000 Subject: 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 --- (limited to 'downloadmanager.py') 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}', -- cgit v0.9.1