[Debian-med-packaging] Bug#590821: Ubuntu patch for Debian bug #590821
barry at python.org
Fri Jan 21 18:46:53 UTC 2011
Here's how I'm fixing this in Ubuntu 11.04.
I actually brought up the python-dev discussion referred to here. It's clear
that __debug__ was always considered a reserved name, and it was a bug in
Python < 2.7 that assignment to it was allowed. Python 2.7 tightened the
restriction to its original intent, disallowing assignment to it even when
it is used as an attribute. So the package definitely needs fixing.
A note about the patch: mgltools does not currently have a patch system,
despite the commented out inclusion of simple-patchsys.mk in debian/rules.
It's considered bad form to add a patch system, so instead of uncommenting the
include and adding a patch, I modified the source directly. The Debian
maintainer may of course elect to do it differently.
@@ -257,10 +257,8 @@
self.hasGui = gui
- global __debug__
self.withShell = withShell
self.trapExceptions = trapExceptions
- self.__debug__ = 0
# create a socket communication object
self.socketComm = Comm()
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the Debian-med-packaging