summaryrefslogtreecommitdiffstats
path: root/Lib/plat-irix5/flp.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:03:39 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:03:39 (GMT)
commit869100a919aa7253ce5f738d1bae9e55abe05463 (patch)
tree7442959f1c96790fea2229ae9658bfa6ebef0762 /Lib/plat-irix5/flp.py
parentbb3753d720dfb72715a74c07645d836802fe761d (diff)
downloadcpython-869100a919aa7253ce5f738d1bae9e55abe05463.zip
cpython-869100a919aa7253ce5f738d1bae9e55abe05463.tar.gz
cpython-869100a919aa7253ce5f738d1bae9e55abe05463.tar.bz2
Get rid of BCOMPAT.
New class syntax.
Diffstat (limited to 'Lib/plat-irix5/flp.py')
-rwxr-xr-xLib/plat-irix5/flp.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/plat-irix5/flp.py b/Lib/plat-irix5/flp.py
index e64d555..71a8f66 100755
--- a/Lib/plat-irix5/flp.py
+++ b/Lib/plat-irix5/flp.py
@@ -52,8 +52,6 @@ def _open_formfile(filename):
if filename[0] = '/':
try:
fp = open(filename,'r')
- except RuntimeError: #BCOMPAT
- fp = None
except IOError:
fp = None
else:
@@ -62,8 +60,6 @@ def _open_formfile(filename):
try:
fp = open(pn, 'r')
break
- except RuntimeError: #BCOMPAT
- fp = None
except IOError:
fp = None
if fp = None:
@@ -107,7 +103,7 @@ def _parse_fd_form(file, name):
#
# Internal class: a convient place to store object info fields
#
-class _newobj():
+class _newobj:
def init(self):
return self
def add(self, (name, value)):
@@ -158,8 +154,6 @@ def _parse_line(line):
value = line[a[2][0]:]
try:
pf = _parse_func[name]
- except RuntimeError: # BCOMPAT
- pf = _parse_num
except KeyError:
pf = _parse_num
value = pf(value)