8000 Flake8 · matplotlib/matplotlib@bd44dc9 · GitHub
[go: up one dir, main page]

Skip to content

Commit bd44dc9

Browse files
committed
Flake8
1 parent b17f5ae commit bd44dc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ def __init__(self, base=1, month=1, day=1, tz=None):
13961396
}
13971397
# Note that tzinfo does not work with pytz timezones, and
13981398
# astimezone doesn't work unless a datetime has timezone info (for
1399-
# py3.5). So the user should provide time-zone aware dates.
1399+
# py3.5). So the user should provide time-zone aware dates.
14001400

14011401
def __call__(self):
14021402
# if no data have been set, this will tank with a ValueError

lib/matplotlib/tests/test_dates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def _create_auto_date_locator(date1, date2, tz):
519519
mdates.date2num(date2))
520520
return locator
521521

522-
results = ([datetime.timedelta(weeks=52 * 200),
522+
results = ([datetime.timedelta(weeks=52*200),
523523
['1980-01-01 00:00:00-08:00', '2000-01-01 00:00:00-08:00',
524524
'2020-01-01 00:00:00-08:00', '2040-01-01 00:00:00-08:00',
525525
'2060-01-01 00:00:00-08:00', '2080-01-01 00:00:00-08:00',
@@ -578,8 +578,8 @@ def _create_auto_date_locator(date1, date2, tz):
578578
with rc_context({'_internal.classic_mode': False}):
579579
d2 = d1 + t_delta
580580
locator = _create_auto_date_locator(d1, d2, tz)
581-
strings = list(map(str, mdates.num2date(locator(), tz=tz)))
582-
assert strings == expected
581+
st = list(map(str, mdates.num2date(locator(), tz=tz)))
582+
assert st == expected
583583

584584

585585
@image_comparison(baseline_images=['date_inverted_limit'],

0 commit comments

Comments
 (0)
0