We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8fb5cc commit 2e2a17bCopy full SHA for 2e2a17b
yajl/__init__.py
@@ -27,7 +27,7 @@
27
'YajlParseCancelled', 'YajlGenException',
28
'YajlContentHandler', 'YajlParser', 'YajlGen',
29
]
30
-__version__ = '2.1.1'
+__version__ = '2.1.2'
31
yajl_version = get_yajl_version()
32
33
def check_yajl_version():
@@ -37,7 +37,9 @@ def check_yajl_version():
37
Returns True, if the version of yajl is identical to the version of yajl-py
38
otherwise displays a RuntimeWarning and returns False.
39
'''
40
- if __version__ != yajl_version:
+ p_yajl_py_version = __version__.split('.')
41
+ p_yajl_version = yajl_version.split('.')
42
+ if p_yajl_py_version[:2] != p_yajl_version[:2]:
43
import warnings
44
warnings.warn(
45
'Using Yajl-Py v%s with Yajl v%s. '
0 commit comments