From: <lu...@us...> - 2012-09-28 12:33:22
|
Revision: 602 http://pyscard.svn.sourceforge.net/pyscard/?rev=602&view=rev Author: ludov Date: 2012-09-28 12:33:12 +0000 (Fri, 28 Sep 2012) Log Message: ----------- parseATR.py:509:12: E711 comparison to None should be 'if cond is None:' parseATR.py:533:19: E711 comparison to None should be 'if cond is None:' Modified Paths: -------------- trunk/contrib/parseATR/parseATR.py Modified: trunk/contrib/parseATR/parseATR.py =================================================================== --- trunk/contrib/parseATR/parseATR.py 2012-09-28 12:28:07 UTC (rev 601) +++ trunk/contrib/parseATR/parseATR.py 2012-09-28 12:33:12 UTC (rev 602) @@ -506,7 +506,7 @@ tlv = historical_bytes.pop(0) # return if we have NO historical bytes - if tlv == None: + if tlv is None: return text tag = tlv / 16 @@ -530,7 +530,7 @@ except IndexError: text.append("Error in the ATR: expecting 1 byte and got 0\n") else: - if cs == None: + if cs is None: text.append(" Error in the ATR: expecting 1 byte and got 0") else: text.append(" Card service data byte: %d\n" % cs) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |