From: <lu...@us...> - 2009-10-04 14:59:12
|
Revision: 319 http://pyscard.svn.sourceforge.net/pyscard/?rev=319&view=rev Author: ludov Date: 2009-10-04 14:59:00 +0000 (Sun, 04 Oct 2009) Log Message: ----------- ParseAtrException is a subclass of exceptions.Exception Modified Paths: -------------- trunk/contrib/parseATR/parseATR.py Modified: trunk/contrib/parseATR/parseATR.py =================================================================== --- trunk/contrib/parseATR/parseATR.py 2009-10-04 14:19:19 UTC (rev 318) +++ trunk/contrib/parseATR/parseATR.py 2009-10-04 14:59:00 UTC (rev 319) @@ -22,10 +22,15 @@ ATR_MAX_PROTOCOLS = 7 T = -1 -class ParseAtrException(Exception): +import exceptions +class ParseAtrException(exceptions.Exception): """Base class for exceptions in this module.""" - pass + def __init__(self, text): + self.text = text + def __str__(self): + return self.text + def toHexString(bytes=[]): """ return a hex list """ return " ".join(["%02X" % b for b in bytes]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |