diff options
author | Guido van Rossum <guido@python.org> | 1992-12-14 12:57:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-12-14 12:57:56 (GMT) |
commit | 89a78697b86782a08be54269b9a7f55d4137d184 (patch) | |
tree | c93404611fb1495f466ccd5695b8e80cfab870a1 /Lib/irix5 | |
parent | a8993cfe16a04c612da72f72181ac63c6f858224 (diff) | |
download | cpython-89a78697b86782a08be54269b9a7f55d4137d184.zip cpython-89a78697b86782a08be54269b9a7f55d4137d184.tar.gz cpython-89a78697b86782a08be54269b9a7f55d4137d184.tar.bz2 |
* Got entirely rid of path.py.
* Many modules: fixes for new, stricter, argument passing rules
(most changes were automatic ones -- not all of this is tested!).
* gwin.py: now uses mainloop.py for its main loop and window admin.
* mainloop.py: always call dispatch() with event as a tuple!
* Fix bug in pdb's 'clear' command -- don't set the bpt but clear it!
Diffstat (limited to 'Lib/irix5')
-rwxr-xr-x | Lib/irix5/flp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/irix5/flp.py b/Lib/irix5/flp.py index 39b45dc..0904efe 100755 --- a/Lib/irix5/flp.py +++ b/Lib/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 # |