From a85832a20c46829c81995d7d0257bc3650fc59e0 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Thu, 29 Jun 2023 10:18:29 +0300 Subject: [PATCH 1/2] Remove deprecated check for Python 3+ --- jmdaemon/jmdaemon/orderbookwatch.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jmdaemon/jmdaemon/orderbookwatch.py b/jmdaemon/jmdaemon/orderbookwatch.py index 2b02590..a53b4b5 100644 --- a/jmdaemon/jmdaemon/orderbookwatch.py +++ b/jmdaemon/jmdaemon/orderbookwatch.py @@ -69,11 +69,7 @@ class OrderbookWatch(object): txfee, cjfee): try: self.dblock.acquire(True) - if sys.version_info >= (3,0): - maxint = sys.maxsize - else: - maxint = sys.maxint - if int(oid) < 0 or int(oid) > maxint: + if int(oid) < 0 or int(oid) > sys.maxsize: log.debug("Got invalid order ID: " + oid + " from " + counterparty) return From 9ce4e98aff5e645bbccf47052e87f46dd9996a9c Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Thu, 29 Jun 2023 10:19:30 +0300 Subject: [PATCH 2/2] JM requires Python 3.6+ currently --- setupall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupall.py b/setupall.py index b52ec1d..c4db920 100644 --- a/setupall.py +++ b/setupall.py @@ -17,8 +17,8 @@ to libsodium. All modes require and install twisted. """ -if sys.version_info < (3, 3): - raise RuntimeError("This package requres Python 3.3+") +if sys.version_info < (3, 6): + raise RuntimeError("This package requres Python 3.6+") def help(): print("Usage: python setupall.py \n"