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:
Łukasz Żarnowiecki
2016-05-08 16:42:52 +02:00
committed by Nicolas Sebrecht
parent 3848bc55f3
commit 068ac7c410
7 changed files with 23 additions and 23 deletions

View File

@ -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'"% \