diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1997-09-09 13:51:17 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1997-09-09 13:51:17 (GMT) |
commit | 6954e3432444cfdee38842cbd81af78966aac459 (patch) | |
tree | f81b25cff4bcf15642240bba842cb2abd2ba59e4 /Mac/Lib | |
parent | c6bb281c50a6a94283f4e77ea3b624909d05fd21 (diff) | |
download | cpython-6954e3432444cfdee38842cbd81af78966aac459.zip cpython-6954e3432444cfdee38842cbd81af78966aac459.tar.gz cpython-6954e3432444cfdee38842cbd81af78966aac459.tar.bz2 |
Added old-exceptions and no-site-python preferences and upped version
to 4.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/pythonprefs.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Mac/Lib/pythonprefs.py b/Mac/Lib/pythonprefs.py index 1f9fd98..e3a7b23 100644 --- a/Mac/Lib/pythonprefs.py +++ b/Mac/Lib/pythonprefs.py @@ -16,14 +16,14 @@ OVERRIDE_POPT_ID = 129 OVERRIDE_GUSI_ID = 10241 # version -CUR_VERSION=3 +CUR_VERSION=4 preffilename = PstringLoader(AnyResLoader('STR ', resname=PREFNAME_NAME)).load() pref_fss = preferencefile(preffilename, 'Pyth', 'pref') class PoptLoader(VersionLoader): def __init__(self, loader): - VersionLoader.__init__(self, "bbbbbbbbbb", loader) + VersionLoader.__init__(self, "bbbbbbbbbbbb", loader) def versioncheck(self, data): if data[0] == CUR_VERSION: @@ -89,7 +89,8 @@ class PythonOptions: flags = self.popt.load() dict['version'], dict['inspect'], dict['verbose'], dict['optimize'], \ dict['unbuffered'], dict['debugging'], dict['keepopen'], dict['keeperror'], \ - dict['nointopt'], dict['noargs'] = flags + dict['nointopt'], dict['noargs'], dict['oldexc'], \ + dict['nosite'] = flags return dict def save(self, dict): @@ -99,7 +100,8 @@ class PythonOptions: 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['nointopt'], dict['noargs'] + dict['nointopt'], dict['noargs'], dict['oldexc'], \ + dict['nosite'] self.popt.save(flags) def AppletOptions(file): |