PR#904: replace long with int

Merges #904
https://pagure.io/koji/pull-request/904
This commit is contained in:
Mike McLean 2018-05-03 12:26:26 -04:00
commit a3e281f7d1

View file

@ -85,7 +85,7 @@ class Session(object):
args = urlparse.parse_qs(args, strict_parsing=True)
hostip = self.get_remote_ip(override=hostip)
try:
id = long(args['session-id'][0])
id = int(args['session-id'][0])
key = args['session-key'][0]
except KeyError as field:
raise koji.AuthError('%s not specified in session args' % field)