Browse Source

Remove deprecated check for Python 3+

master
Kristaps Kaupe 2 years ago
parent
commit
a85832a20c
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 6
      jmdaemon/jmdaemon/orderbookwatch.py

6
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

Loading…
Cancel
Save