Your message dated Wed, 02 Dec 2009 10:12:12 +0000
with message-id <[email protected]>
and subject line Bug#559138: fixed in python-django-debug-toolbar 
0.8.1+git200911272145-1
has caused the Debian Bug report #559138,
regarding python-django-debug-toolbar: syntax error with python2.4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
559138: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559138
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-django-debug-toolbar
Version: 0.8.1-1
Severity: normal
Tags: patch

Hi,

I get a syntax error when installing python-django-debug-toolbar on a system
with python2.4 installed:

-----------------------------------------------8<-----------------------------------------------
Unpacking python-django-debug-toolbar (from 
.../python-django-debug-toolbar_0.8.1-1_all.deb) ...
Setting up python-django-debug-toolbar (0.8.1-1) ...
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.4/debug_toolbar/panels/sql.py ...
  File "/usr/lib/pymodules/python2.4/debug_toolbar/panels/sql.py", line 113
    finally:
          ^
SyntaxError: invalid syntax
-----------------------------------------------8<-----------------------------------------------

The attached patch separates and nests the try:...except: and try:...finally:
statements, fixing the problem.

Cheers, Til


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable'), (400, 'unstable'), (300, 'testing'), (200, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-django-debug-toolbar depends on:
ii  libjs-jquery                  1.2.6-2    JavaScript library for dynamic web
ii  python-django                 1.1.1-1    High-level Python web development 
ii  python-support                1.0.5      automated rebuilding support for P

Versions of packages python-django-debug-toolbar recommends:
ii  python-pygments               0.10-1     syntax highlighting package writte

python-django-debug-toolbar suggests no packages.

-- no debconf information
--- debug_toolbar/panels/sql.py.orig    2009-12-02 08:15:10.441790678 +0100
+++ debug_toolbar/panels/sql.py 2009-12-02 08:16:26.799608573 +0100
@@ -101,15 +101,16 @@
             template_info = None
             cur_frame = sys._getframe().f_back
             try:
-                while cur_frame is not None:
-                    if cur_frame.f_code.co_name == 'render':
-                        node = cur_frame.f_locals['self']
-                        if isinstance(node, Node):
-                            template_info = get_template_info(node.source)
-                            break
-                    cur_frame = cur_frame.f_back
-            except:
-                pass
+                try:
+                    while cur_frame is not None:
+                        if cur_frame.f_code.co_name == 'render':
+                            node = cur_frame.f_locals['self']
+                            if isinstance(node, Node):
+                                template_info = get_template_info(node.source)
+                                break
+                        cur_frame = cur_frame.f_back
+                except:
+                    pass
             finally:
                 del cur_frame
 

--- End Message ---
--- Begin Message ---
Source: python-django-debug-toolbar
Source-Version: 0.8.1+git200911272145-1

We believe that the bug you reported is fixed in the latest version of
python-django-debug-toolbar, which is due to be installed in the Debian FTP 
archive:

python-django-debug-toolbar_0.8.1+git200911272145-1.diff.gz
  to 
main/p/python-django-debug-toolbar/python-django-debug-toolbar_0.8.1+git200911272145-1.diff.gz
python-django-debug-toolbar_0.8.1+git200911272145-1.dsc
  to 
main/p/python-django-debug-toolbar/python-django-debug-toolbar_0.8.1+git200911272145-1.dsc
python-django-debug-toolbar_0.8.1+git200911272145-1_all.deb
  to 
main/p/python-django-debug-toolbar/python-django-debug-toolbar_0.8.1+git200911272145-1_all.deb
python-django-debug-toolbar_0.8.1+git200911272145.orig.tar.gz
  to 
main/p/python-django-debug-toolbar/python-django-debug-toolbar_0.8.1+git200911272145.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <[email protected]> (supplier of updated python-django-debug-toolbar 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 02 Dec 2009 09:27:03 +0000
Source: python-django-debug-toolbar
Binary: python-django-debug-toolbar
Architecture: source all
Version: 0.8.1+git200911272145-1
Distribution: unstable
Urgency: low
Maintainer: Chris Lamb <[email protected]>
Changed-By: Chris Lamb <[email protected]>
Description: 
 python-django-debug-toolbar - Embedded debugging toolbar for Django projects
Closes: 559138
Changes: 
 python-django-debug-toolbar (0.8.1+git200911272145-1) unstable; urgency=low
 .
   * New upstream snapshot.
     - Fix incompatibility with Python 2.4 (Closes: #559138)
Checksums-Sha1: 
 90b15bed890649ce666a404bdb51c9aecbe4c6a4 1473 
python-django-debug-toolbar_0.8.1+git200911272145-1.dsc
 d1b511f448fbe798d205007038e85fd9bc026008 78201 
python-django-debug-toolbar_0.8.1+git200911272145.orig.tar.gz
 13ed3e1fe7165ed50b16ac1b51b1fccd35a79987 3991 
python-django-debug-toolbar_0.8.1+git200911272145-1.diff.gz
 7f01290136955a78b64b6dca788297c346626581 60194 
python-django-debug-toolbar_0.8.1+git200911272145-1_all.deb
Checksums-Sha256: 
 3450be95c7111f8d28453c1f45a0352995558ad66e006de9cf5b3c29d4105e31 1473 
python-django-debug-toolbar_0.8.1+git200911272145-1.dsc
 8fa5bc4f64d6701008d9e03f8e0f55237df78f1ce9bf440c334a051bfd1acb8a 78201 
python-django-debug-toolbar_0.8.1+git200911272145.orig.tar.gz
 159b262d43a0ba0961c8deaa1ddb5cebdae99fe8b3f93b609a2f293cd220e970 3991 
python-django-debug-toolbar_0.8.1+git200911272145-1.diff.gz
 ec804a48638ca19b5115bac48cb69e3cf9e076349f38ab8116c252b7e5228b75 60194 
python-django-debug-toolbar_0.8.1+git200911272145-1_all.deb
Files: 
 babe69e0f46290f52ac2cb35288b8e5b 1473 python optional 
python-django-debug-toolbar_0.8.1+git200911272145-1.dsc
 1ba02b5f52cc26cad3b4398d5f62eac6 78201 python optional 
python-django-debug-toolbar_0.8.1+git200911272145.orig.tar.gz
 5704616a3615fc4007855ddb178c20eb 3991 python optional 
python-django-debug-toolbar_0.8.1+git200911272145-1.diff.gz
 57b36a0b3e63f9d920f59ec3b28ca8d3 60194 python optional 
python-django-debug-toolbar_0.8.1+git200911272145-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAksWMvsACgkQ5/8uW2NPmiC4gACeNOcbSALogmOTRO5nOsXP6erh
VRUAoI9VIh+iKknIv8T97714eIa1M6Hx
=LJM3
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to