Python 3: replace sys.maxint with sys.maxsize

sys.maxint has been removed in Python 3.

Change-Id: I1f523310135cbfc44014dfef4267c14bcadbd0a3
This commit is contained in:
Victor Stinner 2015-05-15 18:22:22 +02:00
parent 253a6288e8
commit 9b50ac02e2

View File

@ -376,7 +376,7 @@ class Connection(pymongo_base.Connection):
for key, grouped_meters in itertools.groupby(meters, key=_group_key):
stat = models.Statistics(unit=None,
min=sys.maxint, max=-sys.maxint,
min=sys.maxsize, max=-sys.maxsize,
avg=0, sum=0, count=0,
period=0, period_start=0, period_end=0,
duration=0, duration_start=0,