Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6954e34

Browse files
committed
Added old-exceptions and no-site-python preferences and upped version
to 4.
1 parent c6bb281 commit 6954e34

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Mac/Lib/pythonprefs.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
OVERRIDE_GUSI_ID = 10241
1717

1818
# version
19-
CUR_VERSION=3
19+
CUR_VERSION=4
2020

2121
preffilename = PstringLoader(AnyResLoader('STR ', resname=PREFNAME_NAME)).load()
2222
pref_fss = preferencefile(preffilename, 'Pyth', 'pref')
2323

2424
class PoptLoader(VersionLoader):
2525
def __init__(self, loader):
26-
VersionLoader.__init__(self, "bbbbbbbbbb", loader)
26+
VersionLoader.__init__(self, "bbbbbbbbbbbb", loader)
2727

2828
def versioncheck(self, data):
2929
if data[0] == CUR_VERSION:
@@ -89,7 +89,8 @@ def load(self):
8989
flags = self.popt.load()
9090
dict['version'], dict['inspect'], dict['verbose'], dict['optimize'], \
9191
dict['unbuffered'], dict['debugging'], dict['keepopen'], dict['keeperror'], \
92-
dict['nointopt'], dict['noargs'] = flags
92+
dict['nointopt'], dict['noargs'], dict['oldexc'], \
93+
dict['nosite'] = flags
9394
return dict
9495

9596
def save(self, dict):
@@ -99,7 +100,8 @@ def save(self, dict):
99100
self.gusi.save((dict['creator'], dict['type'], dict['delayconsole']))
100101
flags = dict['version'], dict['inspect'], dict['verbose'], dict['optimize'], \
101102
dict['unbuffered'], dict['debugging'], dict['keepopen'], dict['keeperror'], \
102-
dict['nointopt'], dict['noargs']
103+
dict['nointopt'], dict['noargs'], dict['oldexc'], \
104+
dict['nosite']
103105
self.popt.save(flags)
104106

105107
def AppletOptions(file):

0 commit comments

Comments
 (0)