diff --git a/Lib/pstats.py b/Lib/pstats.py index b46727d50bd..c1183f9d584 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 f1c9d9db2ed..6c7b77ed50f 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 =====