We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c11fe63 + 0ac1040 commit 59ede18Copy full SHA for 59ede18
CHANGES.rst
@@ -1,3 +1,11 @@
1
+Version 2.5.1
2
+-------------
3
+
4
+Unreleased
5
6
+- Fix compatibility with Python 2.7.
7
8
9
Version 2.5.0
10
-------------
11
flask_sqlalchemy/__init__.py
@@ -36,7 +36,11 @@
36
try:
37
from greenlet import getcurrent as _ident_func
38
except ImportError:
39
- from threading import get_ident as _ident_func
+ try:
40
+ from threading import get_ident as _ident_func
41
+ except ImportError:
42
+ # Python 2.7
43
+ from thread import get_ident as _ident_func
44
45
__version__ = "2.5.0"
46
0 commit comments