# HG changeset patch # User Mads Kiilerich # Date 2019-11-25 00:15:45 # Node ID ebc21c2293717d3c6af9798aea8e71072d69aa25 # Parent aa6f17a53b49e40730cb702957db99a74e7b3cb5 py3: drop support for long - just use int instead From 2to3 long. diff --git a/kallithea/lib/vcs/subprocessio.py b/kallithea/lib/vcs/subprocessio.py --- a/kallithea/lib/vcs/subprocessio.py +++ b/kallithea/lib/vcs/subprocessio.py @@ -44,7 +44,7 @@ class StreamFeeder(threading.Thread): if type(source) in (type(''), bytes, bytearray): # string-like self.bytes = bytes(source) else: # can be either file pointer or file-like - if type(source) in (int, long): # file pointer it is + if isinstance(source, int): # file pointer it is # converting file descriptor (int) stdin into file-like source = os.fdopen(source, 'rb', 16384) # let's see if source is file-like by now diff --git a/kallithea/model/db.py b/kallithea/model/db.py --- a/kallithea/model/db.py +++ b/kallithea/model/db.py @@ -139,7 +139,7 @@ class BaseDbModel(object): return None if isinstance(value, cls): return value - if isinstance(value, (int, long)): + if isinstance(value, int): return cls.get(value) if isinstance(value, basestring) and value.isdigit(): return cls.get(int(value))