summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pstats.py2
-rw-r--r--Lib/xml/sax/xmlreader.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index b46727d..c1183f9 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -613,7 +613,7 @@ if __name__ == '__main__':
print args[1]
return
self.prompt = line + "% "
- elif len(self.prompt > 2):
+ elif len(self.prompt) > 2:
line = self.prompt[-2:]
else:
print "No statistics object is current -- cannot reload."
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py
index f1c9d9d..6c7b77e 100644
--- a/Lib/xml/sax/xmlreader.py
+++ b/Lib/xml/sax/xmlreader.py
@@ -2,9 +2,7 @@
should be based on this code. """
import handler
-
-from _exceptions import SAXNotSupportedException, SAXNotRecognizedException
-
+from _exceptions import *
# ===== XMLREADER =====