]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport 1.18: Patch #416220: Fix misplaced paren.
authorAnthony Baxter <anthonybaxter@gmail.com>
Wed, 5 Dec 2001 05:54:24 +0000 (05:54 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Wed, 5 Dec 2001 05:54:24 +0000 (05:54 +0000)
Lib/pstats.py

index da3aeb76e5e670edec75c3706143575d06e106a3..8eb81b717c477fc6d315d474967f1f6cd25165fb 100644 (file)
@@ -604,7 +604,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."