diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-08-06 15:52:50 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-08-06 15:52:50 -0400 |
commit | e57e1482a6c6e280065b929557f06fed2cd5624f (patch) | |
tree | da7a2b82d71d803c9fcf4096bb179e703458a60a | |
parent | 8aa4136e8d60c788d615717d5ee54fbe36f83505 (diff) | |
download | sqlalchemy-e57e1482a6c6e280065b929557f06fed2cd5624f.tar.gz |
sigh...*NOW* fix it for py3k so the next transformer doesn't squash it
-rw-r--r-- | lib/sqlalchemy/util/langhelpers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py index 82f28f8ec..11d4cdaf6 100644 --- a/lib/sqlalchemy/util/langhelpers.py +++ b/lib/sqlalchemy/util/langhelpers.py @@ -616,14 +616,15 @@ def counter(): lock = threading.Lock() counter = itertools.count(1L) - def next(): + # avoid the 2to3 "next" transformation... + def _next(): lock.acquire() try: return counter.next() finally: lock.release() - return next + return _next def duck_type_collection(specimen, default=None): """Given an instance or class, guess if it is or is acting as one of |