diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 01:35:10 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 01:35:10 +0200 |
commit | 8e02799127ba8d411285d95e6298201197b4393c (patch) | |
tree | 2deb213a82ae29f8c5b6bbe0e7cbd922024da650 /Lib/code.py | |
parent | 6b1d7042eafcf124b22d70d3770b94cf58b66a77 (diff) | |
parent | b6f4002c128868ca2a6c8f3b6a5d76d5f2aa6adb (diff) | |
download | cpython-8e02799127ba8d411285d95e6298201197b4393c.tar.gz |
Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.
Used PyMem_New to check overflow.
Diffstat (limited to 'Lib/code.py')
-rw-r--r-- | Lib/code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/code.py b/Lib/code.py index 9020aab701..f8184b6c22 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -216,7 +216,7 @@ class InteractiveConsole(InteractiveInterpreter): self.write("Python %s on %s\n%s\n(%s)\n" % (sys.version, sys.platform, cprt, self.__class__.__name__)) - else: + elif banner: self.write("%s\n" % str(banner)) more = 0 while 1: |