Skip to content

Commit 2e2a17b

Browse files
committed
Bumping yajl-py version to re-upload to pypi fixes #19
1 parent e8fb5cc commit 2e2a17b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

yajl/__init__.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
'YajlParseCancelled', 'YajlGenException',
2828
'YajlContentHandler', 'YajlParser', 'YajlGen',
2929
]
30-
__version__ = '2.1.1'
30+
__version__ = '2.1.2'
3131
yajl_version = get_yajl_version()
3232

3333
def check_yajl_version():
@@ -37,7 +37,9 @@ def check_yajl_version():
3737
Returns True, if the version of yajl is identical to the version of yajl-py
3838
otherwise displays a RuntimeWarning and returns False.
3939
'''
40-
if __version__ != yajl_version:
40+
p_yajl_py_version = __version__.split('.')
41+
p_yajl_version = yajl_version.split('.')
42+
if p_yajl_py_version[:2] != p_yajl_version[:2]:
4143
import warnings
4244
warnings.warn(
4345
'Using Yajl-Py v%s with Yajl v%s. '

0 commit comments

Comments
 (0)