From 9b50ac02e21938534ba801533984f5e01d51d114 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 15 May 2015 18:22:22 +0200 Subject: [PATCH] Python 3: replace sys.maxint with sys.maxsize sys.maxint has been removed in Python 3. Change-Id: I1f523310135cbfc44014dfef4267c14bcadbd0a3 --- ceilometer/storage/impl_db2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceilometer/storage/impl_db2.py b/ceilometer/storage/impl_db2.py index bf8843a06..1996db999 100644 --- a/ceilometer/storage/impl_db2.py +++ b/ceilometer/storage/impl_db2.py @@ -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,