Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1943707

Browse files
authored
Merge pull request #12600 from anntzer/style
Minor style fixes.
2 parents f090c19 + 1dac80f commit 1943707

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

lib/matplotlib/tests/test_rcparams.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from collections import OrderedDict
22
import copy
3-
from itertools import chain
43
import os
54
from unittest import mock
65
import warnings
@@ -197,12 +196,12 @@ def test_Issue_1713():
197196
def generate_validator_testcases(valid):
198197
validation_tests = (
199198
{'validator': validate_bool,
200-
'success': chain(((_, True) for _ in
201-
('t', 'y', 'yes', 'on', 'true', '1', 1, True)),
202-
((_, False) for _ in
203-
('f', 'n', 'no', 'off', 'false', '0', 0, False))),
204-
'fail': ((_, ValueError)
205-
for _ in ('aardvark', 2, -1, [], ))},
199+
'success': (*((_, True) for _ in
200+
('t', 'y', 'yes', 'on', 'true', '1', 1, True)),
201+
*((_, False) for _ in
202+
('f', 'n', 'no', 'off', 'false', '0', 0, False))),
203+
'fail': ((_, ValueError)
204+
for _ in ('aardvark', 2, -1, [], ))},
206205
{'validator': validate_stringlist,
207206
'success': (('', []),
208207
('a,b', ['a', 'b']),
@@ -313,7 +312,6 @@ def generate_validator_testcases(valid):
313312
('(0, 1, 0, 1)', [0.0, 1.0, 0.0, 1.0]), # RGBA tuple
314313
((0, 1, 0, 1), (0, 1, 0, 1)), # non-string version
315314
('(0, 1, "0.5")', [0.0, 1.0, 0.5]), # unusual but valid
316-
317315
),
318316
'fail': (('tab:veryblue', ValueError), # invalid name
319317
('C123', ValueError), # invalid RGB(A) code and cycle index

lib/mpl_toolkits/axisartist/grid_helper_curvelinear.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ def get_tick_iterators(self, axes):
7171
ti1 = g.get_tick_iterator(self.nth_coord_ticks, side)
7272
ti2 = g.get_tick_iterator(1-self.nth_coord_ticks, side, minor=True)
7373

74-
#ti2 = g.get_tick_iterator(1-self.nth_coord_ticks, self.side, minor=True)
75-
7674
return chain(ti1, ti2), iter([])
7775

7876

tutorials/text/text_intro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,6 @@ def formatoddticks(x, pos):
429429
# Legends and Annotations
430430
# =======================
431431
#
432-
# - Legends: :doc:`/tutorials/intermediate/legend_guide`
433-
# - Annotations: :doc:`/tutorials/text/annotations`
432+
# - Legends: :doc:`/tutorials/intermediate/legend_guide`
433+
# - Annotations: :doc:`/tutorials/text/annotations`
434434
#

0 commit comments

Comments
 (0)