From a85832a20c46829c81995d7d0257bc3650fc59e0 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Thu, 29 Jun 2023 10:18:29 +0300 Subject: [PATCH] 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