Replace calls to long with int calls
long was removed from Python3 Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:

committed by
Nicolas Sebrecht

parent
3848bc55f3
commit
068ac7c410
@ -68,7 +68,7 @@ class LocalStatusFolder(BaseFolder):
|
||||
line = line.strip()
|
||||
try:
|
||||
uid, flags = line.split(':')
|
||||
uid = long(uid)
|
||||
uid = int(uid)
|
||||
flags = set(flags)
|
||||
except ValueError as e:
|
||||
errstr = "Corrupt line '%s' in cache file '%s'" % \
|
||||
@ -89,9 +89,9 @@ class LocalStatusFolder(BaseFolder):
|
||||
line = line.strip()
|
||||
try:
|
||||
uid, flags, mtime, labels = line.split('|')
|
||||
uid = long(uid)
|
||||
uid = int(uid)
|
||||
flags = set(flags)
|
||||
mtime = long(mtime)
|
||||
mtime = int(mtime)
|
||||
labels = set([lb.strip() for lb in labels.split(',') if len(lb.strip()) > 0])
|
||||
except ValueError as e:
|
||||
errstr = "Corrupt line '%s' in cache file '%s'"% \
|
||||
|
Reference in New Issue
Block a user