tags 590822 + pending
thanks

Dear maintainer,

I've prepared an NMU for jaxml (versioned as 3.01-6.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Phil Collins: Doesn't Anybody Stay Together
diff -u jaxml-3.01/debian/changelog jaxml-3.01/debian/changelog
--- jaxml-3.01/debian/changelog
+++ jaxml-3.01/debian/changelog
@@ -1,3 +1,14 @@
+jaxml (3.01-6.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+
+  [ Migual Landeata ]
+  * Assignment to __debug__, even as an attribute, is not allowed in
+    Python 2.7. See upstream tracker issue <http://bugs.python.org/issue9438>.
+    (LP: #719188) (Closes: #590822). Thanks to Xavier Bassery for the patch.
+
+ -- gregor herrmann <gre...@debian.org>  Fri, 20 Jan 2012 14:50:48 +0100
+
 jaxml (3.01-6) unstable; urgency=low
 
   * New maintainer (Closes: #553069).
only in patch2:
unchanged:
--- jaxml-3.01.orig/jaxml.py
+++ jaxml-3.01/jaxml.py
@@ -955,13 +955,21 @@
 
     it inherits from the HTML_document class, but more methods are present
     """
-    __possibleargs = {"version": "1.0", "encoding": "iso-8859-1", "content_type": "text/html", "content_disposition": "", "expires": "", "pragma": "", "redirect": "", "status": "", "statmes": "", "debug": None}
+    __possibleargs = {"version": "1.0", "encoding": "iso-8859-1", "content_type": "text/html", "content_disposition": "", "expires": "", "pragma": "", "redirect": "", "status": "", "statmes": "", "debug_file": None}
 
     def __init__(self, **args) :
         """
         Initialise local datas.
         """
         HTML_document.__init__(self)
+        #translate keyword argument 'debug' to 'debug_file' to not break API
+        if args.has_key("debug") :
+            if args.has_key("debug_file"):
+                #in case both arguments 'debug' and 'debug_file' are given, the latter wins
+                args.pop("debug")
+            else :
+                args["debug_file"] = args.pop("debug")
+ 
         for key in self.__possibleargs.keys() :
                 if args.has_key(key) :
                         value = args[key]
@@ -987,7 +995,7 @@
 
     def _set_debug(self, file) :
         """Sets the flag to send the output to a file too."""
-        self.__debug__ = file
+        self.__debug_file__ = file
 
     def _set_pragma(self, pragma) :
         """Defines the pragma value.
@@ -1145,12 +1153,12 @@
     def _output(self, file = "-") :
         """Prints the CGI script output to stdout or file.
 
-           If self.__debug__ is defined it is used as a file
+           If self.__debug_file__ is defined it is used as a file
            to which send the output to too.
         """
         HTML_document._output(self, file)
-        if self.__debug__ :
-                HTML_document._output(self, self.__debug__)
+        if self.__debug_file__ :
+                HTML_document._output(self, self.__debug_file__)
 
 class Html_document :
         """This class warns the programmer when used, and exits the program.

Attachment: signature.asc
Description: Digital signature

Reply via email to