#8795 NORM Not Tri: name '_active_downloads' used prior to global declaration
Zarro Boogs per Child
bugtracker at laptop.org
Wed Oct 8 16:24:03 EDT 2008
#8795: name '_active_downloads' used prior to global declaration
-----------------------------+----------------------------------------------
Reporter: morgs | Owner: erikos
Type: defect | Status: new
Priority: normal | Milestone: Not Triaged
Component: browse-activity | Version: not specified
Keywords: | Next_action: code
Verified: 0 | Blockedby:
Blocking: |
-----------------------------+----------------------------------------------
Installing Browse 95 on ubuntu (using the debian package repackaged for
intrepid) complained about "downloadmanager.py:275: SyntaxWarning: name
'_active_downloads' is used prior to global declaration"
in the code
{{{
def __datastore_deleted_cb(self, uid):
logging.debug('Downloaded entry has been deleted from the
datastore: %r'
% uid)
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)
}}}
(on the sucrose-0.82 branch).
--
Ticket URL: <http://dev.laptop.org/ticket/8795>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list