mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Keepconsole is now a 4-way option: never/errorexit/unseen output/always. Default is "unseen output". Upped the Popt version number.
This commit is contained in:
parent
e126233cd9
commit
4a5eb967b8
8 changed files with 97 additions and 46 deletions
|
@ -16,7 +16,7 @@ OVERRIDE_POPT_ID = 229
|
|||
OVERRIDE_GUSI_ID = 10241
|
||||
|
||||
# version
|
||||
CUR_VERSION=5
|
||||
CUR_VERSION=6
|
||||
|
||||
preffilename = PstringLoader(AnyResLoader('STR ', resname=PREFNAME_NAME)).load()
|
||||
pref_fss = preferencefile(preffilename, 'Pyth', 'pref')
|
||||
|
@ -88,7 +88,7 @@ class PythonOptions:
|
|||
dict['creator'], dict['type'], dict['delayconsole'] = self.gusi.load()
|
||||
flags = self.popt.load()
|
||||
dict['version'], dict['inspect'], dict['verbose'], dict['optimize'], \
|
||||
dict['unbuffered'], dict['debugging'], dict['keepopen'], dict['keeperror'], \
|
||||
dict['unbuffered'], dict['debugging'], dummy, dict['keep_console'], \
|
||||
dict['nointopt'], dict['noargs'], dict['tabwarn'], \
|
||||
dict['nosite'], dict['nonavservice'] = flags
|
||||
return dict
|
||||
|
@ -99,7 +99,7 @@ class PythonOptions:
|
|||
self.dir.save(diralias)
|
||||
self.gusi.save((dict['creator'], dict['type'], dict['delayconsole']))
|
||||
flags = dict['version'], dict['inspect'], dict['verbose'], dict['optimize'], \
|
||||
dict['unbuffered'], dict['debugging'], dict['keepopen'], dict['keeperror'], \
|
||||
dict['unbuffered'], dict['debugging'], 0, dict['keep_console'], \
|
||||
dict['nointopt'], dict['noargs'], dict['tabwarn'], \
|
||||
dict['nosite'], dict['nonavservice']
|
||||
self.popt.save(flags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue