Changeset - ebc21c229371
[Not reviewed]
default
0 2 0
Mads Kiilerich - 6 years ago 2019-11-25 00:15:45
mads@kiilerich.com
Grafted from: bee4596ae27d
py3: drop support for long - just use int instead

From 2to3 long.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/subprocessio.py
Show inline comments
 
@@ -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
kallithea/model/db.py
Show inline comments
 
@@ -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))
0 comments (0 inline, 0 general)