[Python-modules-commits] r22138 - in packages/circuits/trunk/debian (3 files)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Tue Jun 12 04:44:26 UTC 2012
Date: Tuesday, June 12, 2012 @ 04:44:19
Author: eriol-guest
Revision: 22138
Fix sintax errors since print and exec are not keywords in Python3
Added:
packages/circuits/trunk/debian/patches/04_fix-python3-sintax-error.patch
Modified:
packages/circuits/trunk/debian/changelog
packages/circuits/trunk/debian/patches/series
Modified: packages/circuits/trunk/debian/changelog
===================================================================
--- packages/circuits/trunk/debian/changelog 2012-06-12 04:09:56 UTC (rev 22137)
+++ packages/circuits/trunk/debian/changelog 2012-06-12 04:44:19 UTC (rev 22138)
@@ -32,6 +32,8 @@
tags and filters not used in circuits documentation
* debian/patches/03_force-localhost-as-host-name.patch
- Force localhost as hostname
+ * debian/patches/04_fix-python3-sintax-error.patch
+ - Fix sintax errors since print and exec are not keywords in Python3
* debian/python-circuits-doc.doc-base
- Renamed from python-circuits.doc-base
* debian/python-circuits-doc.links
Added: packages/circuits/trunk/debian/patches/04_fix-python3-sintax-error.patch
===================================================================
--- packages/circuits/trunk/debian/patches/04_fix-python3-sintax-error.patch (rev 0)
+++ packages/circuits/trunk/debian/patches/04_fix-python3-sintax-error.patch 2012-06-12 04:44:19 UTC (rev 22138)
@@ -0,0 +1,27 @@
+Description: Fix sintax errors since print and exec are not keywords in Python3
+Author: Daniele Tricoli <eriol at mornie.org>
+--- a/circuits/web/apps/memorymonitor/reftree.py
++++ b/circuits/web/apps/memorymonitor/reftree.py
+@@ -172,9 +172,9 @@
+ """Walk the object tree, pretty-printing each branch."""
+ self.ignore_caller()
+ for trail in self.walk(maxresults, maxdepth):
+- print trail
++ print (trail)
+ if self.stops:
+- print "%s paths stopped because max depth reached" % self.stops
++ print ("%s paths stopped because max depth reached" % self.stops)
+
+
+ def count_objects():
+--- a/circuits/web/apps/webconsole/__init__.py
++++ b/circuits/web/apps/webconsole/__init__.py
+@@ -56,7 +56,7 @@
+ sys.stdout = sys.stderr = out
+ try:
+ try:
+- exec code in self.locals
++ exec (code in self.locals)
+ except:
+ result = traceback.format_exc()
+ else:
Modified: packages/circuits/trunk/debian/patches/series
===================================================================
--- packages/circuits/trunk/debian/patches/series 2012-06-12 04:09:56 UTC (rev 22137)
+++ packages/circuits/trunk/debian/patches/series 2012-06-12 04:44:19 UTC (rev 22138)
@@ -1,3 +1,4 @@
01_use_issuetraker_instead_of_bitbucket.patch
02_remove_templatebuiltins_js.patch
03_force-localhost-as-host-name.patch
+04_fix-python3-sintax-error.patch
More information about the Python-modules-commits
mailing list