Commit 3fcc7410 authored by 's avatar

Merged multi-arg append fixes from 2.2 branch

parent 2a41ff40
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Class for reading RDB files __doc__='''Class for reading RDB files
$Id: RDB.py,v 1.24 1999/12/06 15:31:36 jim Exp $''' $Id: RDB.py,v 1.25 2000/07/12 17:45:52 brian Exp $'''
__version__='$Revision: 1.24 $'[11:-2] __version__='$Revision: 1.25 $'[11:-2]
import regex, regsub import regex, regsub
from string import split, strip, lower, upper, atof, atoi, atol, find, join from string import split, strip, lower, upper, atof, atoi, atol, find, join
...@@ -194,7 +194,7 @@ class DatabaseResults: ...@@ -194,7 +194,7 @@ class DatabaseResults:
items.append(d) items.append(d)
dd[name]=d dd[name]=d
parsers.append(i,parser) parsers.append((i,parser))
i=i+1 i=i+1
# Create a record class to hold the records. # Create a record class to hold the records.
......
...@@ -275,7 +275,7 @@ class Value(Wrapper): pass ...@@ -275,7 +275,7 @@ class Value(Wrapper): pass
class Dictionary(Collection): class Dictionary(Collection):
def __init__(self): self._d=[] def __init__(self): self._d=[]
def __len__(self): return len(self._d) def __len__(self): return len(self._d)
def __setitem__(self, k, v): self._d.append(k,v) def __setitem__(self, k, v): self._d.append((k,v))
def value(self, indent): def value(self, indent):
return string.join( return string.join(
map(lambda i, ind=' '*indent, indent=indent+4: map(lambda i, ind=' '*indent, indent=indent+4:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment