[Python-modules-commits] r13387 - in packages/pyscard/trunk/debian (4 files)

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Jun 11 16:53:37 UTC 2010


    Date: Friday, June 11, 2010 @ 16:53:31
  Author: rousseau
Revision: 13387

debian/patches/01_ATR.py: Closes: #585319
"python-pyscard: Python string exceptions no more allowed in Python 2.6"

Added:
  packages/pyscard/trunk/debian/patches/
  packages/pyscard/trunk/debian/patches/01_ATR.py
  packages/pyscard/trunk/debian/patches/series
Modified:
  packages/pyscard/trunk/debian/changelog

Modified: packages/pyscard/trunk/debian/changelog
===================================================================
--- packages/pyscard/trunk/debian/changelog	2010-06-11 16:46:56 UTC (rev 13386)
+++ packages/pyscard/trunk/debian/changelog	2010-06-11 16:53:31 UTC (rev 13387)
@@ -1,3 +1,10 @@
+pyscard (1.6.10-2) unstable; urgency=low
+
+  * debian/patches/01_ATR.py: Closes: #585319
+    "python-pyscard: Python string exceptions no more allowed in Python 2.6"
+
+ -- Ludovic Rousseau <rousseau at debian.org>  Fri, 11 Jun 2010 18:47:04 +0200
+
 pyscard (1.6.10-1) unstable; urgency=low
 
   * New upstream release

Added: packages/pyscard/trunk/debian/patches/01_ATR.py
===================================================================
--- packages/pyscard/trunk/debian/patches/01_ATR.py	                        (rev 0)
+++ packages/pyscard/trunk/debian/patches/01_ATR.py	2010-06-11 16:53:31 UTC (rev 13387)
@@ -0,0 +1,15 @@
+From: jean daniel aussel <jdaussel at gmmail.com>
+Origin: upstream, http://pyscard.svn.sourceforge.net/viewvc/pyscard/trunk/pyscard/src/smartcard/ATR.py?r1=484&r2=483&pathrev=484
+Subject: Python string exceptions no more allowed in Python 2.6
+Bug-Debian: http://bugs.debian.org/585319
+--- a/smartcard/ATR.py
++++ b/smartcard/ATR.py
+@@ -38,7 +38,7 @@
+     def __checksyncbyte__( self ):
+         """Check validity of TS."""
+         if not 0x3b==self.bytes[0] and not 0x03f==self.bytes[0]:
+-            raise 'invalid TS',"0x%-0.2x"%self.bytes[0]
++            raise SmartcardException("invalid TS 0x%-0.2x" % self.bytes[0])
+ 
+     def __initInstance__( self ):
+         """Parse ATR and initialize members:

Added: packages/pyscard/trunk/debian/patches/series
===================================================================
--- packages/pyscard/trunk/debian/patches/series	                        (rev 0)
+++ packages/pyscard/trunk/debian/patches/series	2010-06-11 16:53:31 UTC (rev 13387)
@@ -0,0 +1 @@
+01_ATR.py




More information about the Python-modules-commits mailing list