summaryrefslogtreecommitdiffstats
path: root/Lib/plat-irix5
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-irix5')
-rwxr-xr-xLib/plat-irix5/flp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/plat-irix5/flp.py b/Lib/plat-irix5/flp.py
index 39b45dc..0904efe 100755
--- a/Lib/plat-irix5/flp.py
+++ b/Lib/plat-irix5/flp.py
@@ -208,7 +208,7 @@ def _parse_fd_form(file, name):
class _newobj:
def init(self):
return self
- def add(self, (name, value)):
+ def add(self, name, value):
self.__dict__[name] = value
def make(self, dict):
for name in dict.keys():
@@ -299,9 +299,9 @@ def _parse_object(file):
if datum == FORMLINE:
file.seek(pos)
return obj
- if type(datum) <> type(()):
+ if type(datum) <> type(()) or len(datum) <> 2:
raise error, 'Parse error, illegal line in object: '+datum
- obj.add(datum)
+ obj.add(datum[0], datum[1])
#################################################################
# Part 2 - High-level object/form creation routines #