[Python-apps-commits] r5360 - in packages/boa-constructor/trunk/debian (3 files)
dktrkranz at users.alioth.debian.org
dktrkranz at users.alioth.debian.org
Mon Jun 7 09:54:40 UTC 2010
Date: Monday, June 7, 2010 @ 09:54:28
Author: dktrkranz
Revision: 5360
Do not use string exceptions, not supported by Python 2.6
Added:
packages/boa-constructor/trunk/debian/patches/string_exceptions.patch
Modified:
packages/boa-constructor/trunk/debian/changelog
packages/boa-constructor/trunk/debian/patches/series
Modified: packages/boa-constructor/trunk/debian/changelog
===================================================================
--- packages/boa-constructor/trunk/debian/changelog 2010-06-06 17:30:20 UTC (rev 5359)
+++ packages/boa-constructor/trunk/debian/changelog 2010-06-07 09:54:28 UTC (rev 5360)
@@ -1,3 +1,10 @@
+boa-constructor (0.6.1-10) UNRELEASED; urgency=low
+
+ * debian/patches/string_exceptions.patch:
+ - Do not use string exceptions, not supported by Python 2.6
+
+ -- Luca Falavigna <dktrkranz at debian.org> Mon, 07 Jun 2010 11:46:09 +0200
+
boa-constructor (0.6.1-9) unstable; urgency=low
* Do not install embedded tarfile, zipfile and xmlrpclib modules, they
Modified: packages/boa-constructor/trunk/debian/patches/series
===================================================================
--- packages/boa-constructor/trunk/debian/patches/series 2010-06-06 17:30:20 UTC (rev 5359)
+++ packages/boa-constructor/trunk/debian/patches/series 2010-06-07 09:54:28 UTC (rev 5360)
@@ -3,3 +3,4 @@
no_maxint.patch
no_double_free.patch
stdlib.patch
+string_exceptions.patch
Added: packages/boa-constructor/trunk/debian/patches/string_exceptions.patch
===================================================================
--- packages/boa-constructor/trunk/debian/patches/string_exceptions.patch (rev 0)
+++ packages/boa-constructor/trunk/debian/patches/string_exceptions.patch 2010-06-07 09:54:28 UTC (rev 5360)
@@ -0,0 +1,155 @@
+Index: boa-constructor-0.6.1/Debugger/test.py
+===================================================================
+--- boa-constructor-0.6.1.orig/Debugger/test.py 2010-06-07 09:41:04.000000000 +0000
++++ boa-constructor-0.6.1/Debugger/test.py 2010-06-07 09:37:13.000000000 +0000
+@@ -21,7 +21,7 @@
+ print 'Message:'
+ test1()
+ print 'Bye.'
+- raise 'I refuse to finish!'
++ raise Exception('I refuse to finish!')
+ print 'yeah.'
+
+ if __name__ == '__main__':
+Index: boa-constructor-0.6.1/Examples/Everything.py
+===================================================================
+--- boa-constructor-0.6.1.orig/Examples/Everything.py 2010-06-07 09:41:04.000000000 +0000
++++ boa-constructor-0.6.1/Examples/Everything.py 2010-06-07 09:37:32.000000000 +0000
+@@ -412,7 +412,7 @@
+ print 'Menu0'
+
+ def OnToolbar1tools0Tool(self, event):
+- raise 'Tool0'
++ raise Exception('Tool0')
+
+ def OnButton1Button(self, event):
+ self.timer1.Start(1000, False)
+Index: boa-constructor-0.6.1/ExternalLib/WebDAV/client.py
+===================================================================
+--- boa-constructor-0.6.1.orig/ExternalLib/WebDAV/client.py 2010-06-07 09:41:04.000000000 +0000
++++ boa-constructor-0.6.1/ExternalLib/WebDAV/client.py 2010-06-07 09:37:46.000000000 +0000
+@@ -124,7 +124,7 @@
+ data=h.getfile().read()
+ h.close()
+ except:
+- raise 'NotAvailable', sys.exc_value
++ raise Exception('NotAvailable', sys.exc_value)
+ return http_response(ver, code, msg, hdrs, data)
+
+ # HTTP methods
+Index: boa-constructor-0.6.1/Plug-ins/ProdFormulator.plug-in.py
+===================================================================
+--- boa-constructor-0.6.1.orig/Plug-ins/ProdFormulator.plug-in.py 2010-06-07 09:41:05.000000000 +0000
++++ boa-constructor-0.6.1/Plug-ins/ProdFormulator.plug-in.py 2010-06-07 09:38:54.000000000 +0000
+@@ -348,7 +348,7 @@
+
+ def getPropList(self):
+ if self.obj is None:
+- raise 'First assign a DateTime to the property.'
++ raise Exception('First assign a DateTime to the property.')
+
+ name, val = self.ownerCompn.propTypeMap[self.name]
+ subProps = [('sub%s_year'%name, self.obj.year() ),
+@@ -370,7 +370,7 @@
+ if prop[0] == name: return prop[1]
+
+ def SetProp(self, name, value):
+- raise 'Property editing not supported yet'
++ raise NotImplementedError('Property editing not supported yet')
+
+ def keyListFromDictList(key, dctLst):
+ res = []
+Index: boa-constructor-0.6.1/Plug-ins/RegExplorer.plug-in.py
+===================================================================
+--- boa-constructor-0.6.1.orig/Plug-ins/RegExplorer.plug-in.py 2010-06-07 09:41:04.000000000 +0000
++++ boa-constructor-0.6.1/Plug-ins/RegExplorer.plug-in.py 2010-06-07 09:39:05.000000000 +0000
+@@ -213,7 +213,7 @@
+ return res
+
+ def SetProp(self, name, value):
+- raise 'Property editing not supported yet'
++ raise NotImplementedError('Property editing not supported yet')
+
+
+ #-------------------------------------------------------------------------------
+Index: boa-constructor-0.6.1/ZopeLib/Client.py
+===================================================================
+--- boa-constructor-0.6.1.orig/ZopeLib/Client.py 2010-06-07 09:41:05.000000000 +0000
++++ boa-constructor-0.6.1/ZopeLib/Client.py 2010-06-07 09:40:51.000000000 +0000
+@@ -283,9 +283,9 @@
+ try:
+ [ver, ec, em] = split(line, None, 2)
+ except ValueError:
+- raise 'BadReply','Bad reply from server: '+line
++ raise Exception('BadReply','Bad reply from server: '+line)
+ if ver[:5] != 'HTTP/':
+- raise 'BadReply','Bad reply from server: '+line
++ raise Exception('BadReply','Bad reply from server: '+line)
+
+ ec=atoi(ec)
+ em=strip(em)
+Index: boa-constructor-0.6.1/ZopeLib/DateTime/DateTime.py
+===================================================================
+--- boa-constructor-0.6.1.orig/ZopeLib/DateTime/DateTime.py 2010-06-07 09:41:05.000000000 +0000
++++ boa-constructor-0.6.1/ZopeLib/DateTime/DateTime.py 2010-06-07 09:39:36.000000000 +0000
+@@ -312,7 +312,7 @@
+ try: n=self._zmap[lower(k)]
+ except KeyError:
+ if numericTimeZoneMatch(k) == None:
+- raise 'DateTimeError','Unrecognized timezone: %s' % k
++ raise Exception('DateTimeError','Unrecognized timezone: %s' % k)
+ return k
+ try: return self._d[n]
+ except KeyError:
+@@ -461,8 +461,8 @@
+ try:
+ t_int = int(t)
+ except OverflowError:
+- raise 'TimeError', 'The time %f is beyond the range ' \
+- 'of this Python implementation.' % float(t)
++ raise Exception('TimeError', 'The time %f is beyond the range ' \
++ 'of this Python implementation.' % float(t))
+ rval = gmtime(t_int)
+ return rval
+
+@@ -471,8 +471,8 @@
+ try:
+ t_int = int(t)
+ except OverflowError:
+- raise 'TimeError', 'The time %f is beyond the range ' \
+- 'of this Python implementation.' % float(t)
++ raise Exception('TimeError', 'The time %f is beyond the range ' \
++ 'of this Python implementation.' % float(t))
+ rval = localtime(t_int)
+ return rval
+
+Index: boa-constructor-0.6.1/ZopeLib/zoa/subobj_.py
+===================================================================
+--- boa-constructor-0.6.1.orig/ZopeLib/zoa/subobj_.py 2010-06-07 09:41:05.000000000 +0000
++++ boa-constructor-0.6.1/ZopeLib/zoa/subobj_.py 2010-06-07 09:39:45.000000000 +0000
+@@ -15,4 +15,4 @@
+ continue
+ if name == objname:
+ return subobj
+-raise 'Method not found in %s'%obj.id
++raise Exception('Method not found in %s'%obj.id)
+Index: boa-constructor-0.6.1/bcrtl/user/StaticTextCtrl.py
+===================================================================
+--- boa-constructor-0.6.1.orig/bcrtl/user/StaticTextCtrl.py 2010-06-07 09:41:03.000000000 +0000
++++ boa-constructor-0.6.1/bcrtl/user/StaticTextCtrl.py 2010-06-07 09:40:22.000000000 +0000
+@@ -47,7 +47,7 @@
+
+ def SetCaptionAlignment(self, align):
+ if align not in (wx.LEFT, wx.TOP):
+- raise 'Unsupported alignment'
++ raise Exception('Unsupported alignment')
+ self._captionAlignment = align
+ self.updateStaticTextPos()
+
+@@ -153,4 +153,4 @@
+ def OnMove(self, event):
+ event.Skip()
+ self.ctrl.updateStaticTextPos()
+-
+\ No newline at end of file
++
More information about the Python-apps-commits
mailing list