Commit ff90c6f5 authored by Vincent Pelletier's avatar Vincent Pelletier

Silence some pylint warnings.

parent a85ac8f9
...@@ -501,17 +501,17 @@ class AggregateSiteUrl(argparse.Action): ...@@ -501,17 +501,17 @@ class AggregateSiteUrl(argparse.Action):
dest.append((value, match, action)) dest.append((value, match, action))
def _asMonthString(timestamp): def _asMonthString(timestamp):
dt, tz = timestamp.split(' ') dt, _ = timestamp.split(' ')
_, month, year = dt.split(':', 1)[0].split('/') _, month, year = dt.split(':', 1)[0].split('/')
return '%s/%02i' % (year, MONTH_VALUE_DICT[month]) return '%s/%02i' % (year, MONTH_VALUE_DICT[month])
def _asDayString(timestamp): def _asDayString(timestamp):
dt, tz = timestamp.split(' ') dt, _ = timestamp.split(' ')
day, month, year = dt.split(':', 1)[0].split('/') day, month, year = dt.split(':', 1)[0].split('/')
return '%s/%02i/%s' % (year, MONTH_VALUE_DICT[month], day) return '%s/%02i/%s' % (year, MONTH_VALUE_DICT[month], day)
def _asHourString(timestamp): def _asHourString(timestamp):
dt, tz = timestamp.split(' ') dt, _ = timestamp.split(' ')
date, hour, _ = dt.split(':', 2) date, hour, _ = dt.split(':', 2)
day, month, year = date.split('/') day, month, year = date.split('/')
return '%s/%02i/%s %s' % (year, MONTH_VALUE_DICT[month], day, hour) return '%s/%02i/%s %s' % (year, MONTH_VALUE_DICT[month], day, hour)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment