mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Make the copyright message the same as for the "real" interpreter.
This commit is contained in:
parent
da8df6ea8e
commit
c5f15b088f
1 changed files with 2 additions and 1 deletions
|
@ -216,9 +216,10 @@ class InteractiveConsole(InteractiveInterpreter):
|
||||||
sys.ps2
|
sys.ps2
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
sys.ps2 = "... "
|
sys.ps2 = "... "
|
||||||
|
cprt = 'Type "copyright", "credits" or "license" for more information.'
|
||||||
if banner is None:
|
if banner is None:
|
||||||
self.write("Python %s on %s\n%s\n(%s)\n" %
|
self.write("Python %s on %s\n%s\n(%s)\n" %
|
||||||
(sys.version, sys.platform, sys.copyright,
|
(sys.version, sys.platform, cprt,
|
||||||
self.__class__.__name__))
|
self.__class__.__name__))
|
||||||
else:
|
else:
|
||||||
self.write("%s\n" % str(banner))
|
self.write("%s\n" % str(banner))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue