summaryrefslogtreecommitdiffstats
path: root/Lib/lib-stdwin
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:03:52 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:03:52 (GMT)
commit2234bc91013622812dee0a5a58475170d89c512d (patch)
tree764117a8107d9d7a760e3bc1e1d3253f2363019a /Lib/lib-stdwin
parent869100a919aa7253ce5f738d1bae9e55abe05463 (diff)
downloadcpython-2234bc91013622812dee0a5a58475170d89c512d.zip
cpython-2234bc91013622812dee0a5a58475170d89c512d.tar.gz
cpython-2234bc91013622812dee0a5a58475170d89c512d.tar.bz2
Use ImportError.
New class syntax.
Diffstat (limited to 'Lib/lib-stdwin')
-rw-r--r--Lib/lib-stdwin/formatter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-stdwin/formatter.py b/Lib/lib-stdwin/formatter.py
index d1cd1558..aea7deb 100644
--- a/Lib/lib-stdwin/formatter.py
+++ b/Lib/lib-stdwin/formatter.py
@@ -7,7 +7,7 @@
# formatting, along the lines of TeX; for now, a very simple model
# is sufficient.
#
-class formatter():
+class formatter:
#
# Initialize a formatter instance.
# Pass the window's drawing object, and left, top, right
@@ -160,7 +160,7 @@ def test():
# Mac font assignments:
font1 = 'times', '', 12
font2 = 'times', 'b', 14
- except NameError:
+ except ImportError:
# X11R4 font assignments
font1 = '*times-medium-r-*-120-*'
font2 = '*times-bold-r-*-140-*'