Replace sys.maxint with sys.maxsize
sys.maxint has been removed in Python 3.1. https://docs.python.org/3.1/whatsnew/3.0.html#integers
This commit is contained in:
parent
8335cbff83
commit
8290b50aa4
@ -548,9 +548,9 @@ def main(args):
|
|||||||
if args.wipe_cache:
|
if args.wipe_cache:
|
||||||
Cache.delete_all()
|
Cache.delete_all()
|
||||||
if args.heavy_cache:
|
if args.heavy_cache:
|
||||||
Cache.PATTERNS[r'/search/request'] = sys.maxint
|
Cache.PATTERNS[r'/search/request'] = sys.maxsize
|
||||||
Cache.PATTERNS[r'/source/[^/]+/{}/_history'.format(package)] = sys.maxint
|
Cache.PATTERNS[r'/source/[^/]+/{}/_history'.format(package)] = sys.maxsize
|
||||||
Cache.PATTERNS[r'/source/[^/]+/{}/[^/]+\?rev=.*'.format(package)] = sys.maxint
|
Cache.PATTERNS[r'/source/[^/]+/{}/[^/]+\?rev=.*'.format(package)] = sys.maxsize
|
||||||
Cache.init('metrics')
|
Cache.init('metrics')
|
||||||
|
|
||||||
Config(apiurl, args.project)
|
Config(apiurl, args.project)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user