Commit ece40a19 authored by Denis Bilenko's avatar Denis Bilenko

gevent.core: check libevent version at import time

parent 21ff90c5
......@@ -311,3 +311,8 @@ def reinit():
# XXX - make sure event queue is always initialized.
init()
if get_version() != get_header_version() and get_header_version() is not None:
import warnings
msg = "version mismatch: system libevent version is %r but this gevent is compiled against %r" % (get_version(), get_header_version())
warnings.warn(msg, UserWarning, stacklevel=2)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment