diff --git a/pandas/core/datetools.py b/pandas/core/datetools.py index f02939b3fdb0f..0d0e2a098809d 100644 --- a/pandas/core/datetools.py +++ b/pandas/core/datetools.py @@ -707,9 +707,9 @@ class Second(Tick): for i, weekday in enumerate(['MON', 'TUE', 'WED', 'THU', 'FRI']): - for week in xrange(4): - _offsetMap['WOM@%d%s' % (week + 1, weekday)] = \ - WeekOfMonth(week=week, weekday=i) + for iweek in xrange(4): + _offsetMap['WOM@%d%s' % (iweek + 1, weekday)] = \ + WeekOfMonth(week=iweek, weekday=i) _offsetNames = dict([(v, k) for k, v in _offsetMap.iteritems()])