issue #576: fix Kwargs minor version check.

Unicode kwargs were introduced in Python 2.6.5, not 2.6.0.
This commit is contained in:
David Wilson 2019-04-03 19:01:56 +01:00
parent 333151f7fd
commit ee62c57c9d
2 changed files with 8 additions and 4 deletions

View File

@ -27,13 +27,17 @@ Fixes
* `#557 <https://github.com/dw/mitogen/issues/557>`_: fix a crash when running
on machines with high CPU counts.
* `#570 <https://github.com/dw/mitogen/issues/570>`_: the ``firewalld`` module
internally caches a dbus name that changes across ``firewalld`` restarts,
causing a failure if the service is restarted between ``firewalld`` module invocations.
* `#575 <https://github.com/dw/mitogen/issues/575>`_: fix a crash when
rendering an error message to indicate no usable temporary directories could
be found.
* `#570 <https://github.com/dw/mitogen/issues/570>`_: the ``firewalld`` module
internally caches a dbus name that changes across ``firewalld`` restarts,
causing a failure if the service is restarted between ``firewalld`` module invocations.
* `#576 <https://github.com/dw/mitogen/issues/576>`_: fix a crash during
startup on SuSE Linux 11, due to an incorrect version compatibility check in
the Mitogen code.
Thanks!

View File

@ -277,7 +277,7 @@ class Kwargs(dict):
self[k.decode()] = v
else:
self[k] = v
elif sys.version_info < (2, 6):
elif sys.version_info < (2, 6, 5):
def __init__(self, dct):
for k, v in dct.iteritems():
if type(k) is unicode: