From cff82fe4d79f1b6ea1907fcc7075090975222087 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Mon, 10 Feb 2020 22:40:48 +0100 Subject: [PATCH] removed explicit version checks of dependencies such as serpent --- Pyro5/serializers.py | 11 ----------- docs/source/changelog.rst | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Pyro5/serializers.py b/Pyro5/serializers.py index cc1c432..3c72783 100644 --- a/Pyro5/serializers.py +++ b/Pyro5/serializers.py @@ -19,8 +19,6 @@ import contextlib try: import msgpack - if msgpack.version < (0, 5, 2): - raise RuntimeError("requires msgpack 0.5.2 or better") except ImportError: msgpack = None from . import errors @@ -31,15 +29,6 @@ log = logging.getLogger("Pyro5.serializers") -if '-' in serpent.__version__: - ver = serpent.__version__.split('-', 1)[0] -else: - ver = serpent.__version__ -ver = tuple(map(int, ver.split("."))) -if ver < (1, 27): - raise RuntimeError("requires serpent 1.27 or better") - - all_exceptions = {} for name, t in vars(builtins).items(): if type(t) is type and issubclass(t, BaseException): diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 4196f69..5626314 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -5,6 +5,8 @@ Change Log **Pyro 5.8** - cython compatibility fix +- removed explicit version checks of dependencies such as serpent. + This fixes crash error when dealing with prerelease versions that didn't match the pattern. **Pyro 5.7**