diff options
author | Collin Winter <collinw@gmail.com> | 2007-07-17 20:59:35 +0000 |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-07-17 20:59:35 +0000 |
commit | 6f2df4d5e193d54244b0c2de91ef0ab1604b9243 (patch) | |
tree | 5e172400da7561eb4bb8fafc62c8cab511d74dad /Demo/tix | |
parent | a8c360ee76fb76902a2e2140fbb38d4b06b2d9fb (diff) | |
download | cpython-git-6f2df4d5e193d54244b0c2de91ef0ab1604b9243.tar.gz |
Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about lingering print statements.
Diffstat (limited to 'Demo/tix')
-rwxr-xr-x | Demo/tix/samples/OptMenu.py | 2 | ||||
-rw-r--r-- | Demo/tix/tixwidgets.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Demo/tix/samples/OptMenu.py b/Demo/tix/samples/OptMenu.py index 1d39420cd9..2cf625afcb 100755 --- a/Demo/tix/samples/OptMenu.py +++ b/Demo/tix/samples/OptMenu.py @@ -40,7 +40,7 @@ def RunSample(w): # global variables "demo_opt_from" and "demo_opt_to". Otherwise # the OptionMenu widget will complain about "unknown options"! # - for opt in options.keys(): + for opt in list(options.keys()): from_file.add_command(opt, label=options[opt]) to_file.add_command(opt, label=options[opt]) diff --git a/Demo/tix/tixwidgets.py b/Demo/tix/tixwidgets.py index bf7102ad4d..49d1e7f9ac 100644 --- a/Demo/tix/tixwidgets.py +++ b/Demo/tix/tixwidgets.py @@ -166,7 +166,7 @@ class Demo: try: tkMessageBox.showerror ('Error', text) except: pass self.exit = 1 - raise SystemExit, 1 + raise SystemExit(1) def destroy (self): self.root.destroy() |