- how_many=int(match.group(1))
- what=match.group(2)
- if what == 'd': d=datetime.timedelta(days=how_many)
- elif what == 'w': d=datetime.timedelta(weeks=how_many)
- elif what == 'm': d=datetime.timedelta(weeks=4*how_many)
- return datetime.datetime.utcnow()+d
+ how_many = int(match.group(1))
+ what = match.group(2)
+ if what == 'd':
+ d = datetime.timedelta(days=how_many)
+ elif what == 'w':
+ d = datetime.timedelta(weeks=how_many)
+ elif what == 'm':
+ d = datetime.timedelta(weeks=4 * how_many)
+ return datetime.datetime.utcnow() + d