summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/GUI/xasyOptions.py
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-07 16:52:56 +0000
committerKarl Berry <karl@freefriends.org>2016-04-07 16:52:56 +0000
commite1e1d6fa3224440612d3ad6595c413f88d552702 (patch)
treeeaa3301c9fecd1d01baa642b2e483fee4430bcee /Master/texmf-dist/asymptote/GUI/xasyOptions.py
parent0eefec13710bb4d6aff6838a6efc463912506ee9 (diff)
asymptote 2.37
git-svn-id: svn://tug.org/texlive/trunk@40303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/GUI/xasyOptions.py')
-rwxr-xr-xMaster/texmf-dist/asymptote/GUI/xasyOptions.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/asymptote/GUI/xasyOptions.py b/Master/texmf-dist/asymptote/GUI/xasyOptions.py
index 17d58d760e5..927490b77aa 100755
--- a/Master/texmf-dist/asymptote/GUI/xasyOptions.py
+++ b/Master/texmf-dist/asymptote/GUI/xasyOptions.py
@@ -81,16 +81,16 @@ def load():
try:
os.makedirs(thedir)
except:
- raise Exception,"Could not create configuration folder"
+ raise Exception("Could not create configuration folder")
if not os.path.isdir(thedir):
- raise Exception,"Configuration folder path does not point to a folder"
+ raise Exception("Configuration folder path does not point to a folder")
setDefaults()
try:
f = open(fileName,"rb")
newOptions = pickle.load(f)
for key in options.keys():
if type(newOptions[key]) != type(options[key]):
- raise Exception,"Bad type for entry in xasy settings"
+ raise Exception("Bad type for entry in xasy settings")
options = newOptions
except:
setDefaults()
@@ -103,24 +103,24 @@ def save():
pickle.dump(options,f)
f.close()
except:
- raise Exception,"Error saving preferences"
+ raise Exception("Error saving preferences")
load()
if __name__=='__main__':
- print settingsFileLocation()
- print "Current content"
+ print (settingsFileLocation())
+ print ("Current content")
load()
- print "Setting defaults"
+ print ("Setting defaults")
setDefaults()
save()
load()
options['showAxes'] = options['showGrid'] = False
save()
- print "Set to False"
+ print ("Set to False")
load()
options['showAxes'] = options['showGrid'] = True
save()
- print "Set to True"
+ print ("Set to True")
load()
- print options
+ print (options)