|
From: <lu...@us...> - 2015-02-18 17:53:13
|
Revision: 668
http://sourceforge.net/p/pyscard/code/668
Author: ludov
Date: 2015-02-18 17:47:21 +0000 (Wed, 18 Feb 2015)
Log Message:
-----------
Use from ... instead of import ...
https://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Packages
Modified Paths:
--------------
trunk/contrib/parseATR/parseATR.py
Modified: trunk/contrib/parseATR/parseATR.py
===================================================================
--- trunk/contrib/parseATR/parseATR.py 2015-02-18 17:42:05 UTC (rev 667)
+++ trunk/contrib/parseATR/parseATR.py 2015-02-18 17:47:21 UTC (rev 668)
@@ -24,12 +24,12 @@
ATR_MAX_PROTOCOLS = 7
T = -1
-import exceptions
+from exceptions import Exception
import re
-import types
+from types import StringTypes
-class ParseAtrException(exceptions.Exception):
+class ParseAtrException(Exception):
""" Base class for exceptions in this module """
def __init__(self, text):
@@ -736,7 +736,7 @@
def colorize_line(line, left, right):
# colorize data from the format: foo: data, ...
- if isinstance(line, types.StringTypes):
+ if isinstance(line, StringTypes):
return line
template = line[0]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|