summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/orderinglist.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-06-19 17:40:13 +0000
committerJason Kirtland <jek@discorporate.us>2008-06-19 17:40:13 +0000
commitc49a7dd9109f2fa9635ff461b15d241a3119cca3 (patch)
tree9be7f51fe1561d601c1e22470db50a4cc9f72c46 /lib/sqlalchemy/ext/orderinglist.py
parentc1363d8aca5623114d36445df4c95b6bc5b49ccb (diff)
downloadsqlalchemy-c49a7dd9109f2fa9635ff461b15d241a3119cca3.tar.gz
- Oops, convert @decorator to 2.3 syntax and strengthen raw_append test.
Diffstat (limited to 'lib/sqlalchemy/ext/orderinglist.py')
-rw-r--r--lib/sqlalchemy/ext/orderinglist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/orderinglist.py b/lib/sqlalchemy/ext/orderinglist.py
index 68d10e715..b53a57cbe 100644
--- a/lib/sqlalchemy/ext/orderinglist.py
+++ b/lib/sqlalchemy/ext/orderinglist.py
@@ -233,11 +233,11 @@ class OrderingList(list):
super(OrderingList, self).append(entity)
self._order_entity(len(self) - 1, entity, self.reorder_on_append)
- @collection.adds(1)
def _raw_append(self, entity):
"""Append without any ordering behavior."""
super(OrderingList, self).append(entity)
+ _raw_append = collection.adds(1)(_raw_append)
def insert(self, index, entity):
self[index:index] = [entity]