Use range instead xrange (#13128)

* Use range instead of xrange

* convert float to int
This commit is contained in:
Achilles Rasquinha
2018-02-28 16:12:51 +05:30
committed by Faris Ansari
parent 72d8509b3d
commit 96698c9a77
19 changed files with 38 additions and 38 deletions

View File

@@ -182,7 +182,7 @@ def get_period_date_ranges(period, fiscal_year=None, year_start_date=None):
}.get(period)
period_date_ranges = []
for i in xrange(1, 13, increment):
for i in range(1, 13, increment):
period_end_date = getdate(year_start_date) + relativedelta(months=increment, days=-1)
if period_end_date > getdate(year_end_date):
period_end_date = year_end_date