]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add the py2k symbol from the 0.9 branch to support the hstore change
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 29 May 2013 22:36:10 +0000 (18:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 29 May 2013 22:36:10 +0000 (18:36 -0400)
lib/sqlalchemy/dialects/postgresql/hstore.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/compat.py

index b2150bc4495e66103736cfcaf160576b9b18c43b..4daf54bab6208a83b5803b3486cba2a3ed33446d 100644 (file)
@@ -10,6 +10,7 @@ from .base import ARRAY, ischema_names
 from ... import types as sqltypes
 from ...sql import functions as sqlfunc
 from ...sql.operators import custom_op
+from ... import util
 
 __all__ = ('HSTORE', 'hstore')
 
index 3fa06c79325b96c11b4f4c4481eb4e7b303856e6..efeca6f1bc7c4e7183c2de4c79a19b74107265c7 100644 (file)
@@ -5,7 +5,7 @@
 # the MIT License: http://www.opensource.org/licenses/mit-license.php
 
 from .compat import callable, cmp, reduce,  \
-    threading, py3k, py3k_warning, jython, pypy, cpython, win32, set_types, \
+    threading, py3k, py2k, py3k_warning, jython, pypy, cpython, win32, set_types, \
     pickle, dottedgetter, parse_qsl, namedtuple, next, WeakSet, reraise, \
     raise_from_cause
 
index 033a87cc7bbf3f0c3f9ca0e749d72f7b000a6a59..6905d6347c2f71f7c709064e024e3f076edbf347 100644 (file)
@@ -16,6 +16,7 @@ except ImportError:
 py32 = sys.version_info >= (3, 2)
 py3k_warning = getattr(sys, 'py3kwarning', False) or sys.version_info >= (3, 0)
 py3k = sys.version_info >= (3, 0)
+py2k = sys.version_info < (3, 0)
 jython = sys.platform.startswith('java')
 pypy = hasattr(sys, 'pypy_version_info')
 win32 = sys.platform.startswith('win')