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))