summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-03-26 06:26:02 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-03-26 06:26:02 +0000
commitc9cfb713ce1488dc0c1cb87bcc050e3ac0de7bcb (patch)
tree3904c0ad26933567356cf76eaf693ba3afae7a07 /lib/sqlalchemy/util.py
parent995d9afb831ec72757781d5b48e5b4eee0bfac28 (diff)
downloadsqlalchemy-c9cfb713ce1488dc0c1cb87bcc050e3ac0de7bcb.tar.gz
util: the __setitem__ method on historyarraylist was meaningless, surprising nobody noticed that.
types: added PickleType, its slightly trickier than trivial, so OK now its standard. attributes: the level of pain if an AttributeError occurs inside a CallableProp, in combination with an object that implements __getattr__, is too deep for me to put the users through....so convert AttributeErrors to Assertions... engine: im not a fan of catching universal exceptions and squashing them
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r--lib/sqlalchemy/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py
index 85bbfdc5a..44209b104 100644
--- a/lib/sqlalchemy/util.py
+++ b/lib/sqlalchemy/util.py
@@ -397,7 +397,7 @@ class HistoryArraySet(UserList.UserList):
def has_item(self, item):
return self.records.has_key(item)
def __setitem__(self, i, item):
- if self._setrecord(a):
+ if self._setrecord(item):
self.data[i] = item
def __delitem__(self, i):
self._delrecord(self.data[i])