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

Skip to content

Commit 8e54cf6

Browse files
author
ojeda-e
committed
Flake8 fixed.
1 parent 02c8086 commit 8e54cf6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,13 @@ def test_fontcache_thread_safe():
267267
pytest.fail("The subprocess returned with non-zero exit status "
268268
f"{proc.returncode}.")
269269

270+
270271
def test_get_font_list():
271272
paths_mpl = [cbook._get_data_path('fonts', subdir) for subdir in ['ttf']]
272273
fonts_mpl = findSystemFonts(paths_mpl, fontext='ttf')
273274
fonts_system = findSystemFonts(fontext='ttf')
274275
ttf_fonts = []
275-
for path in fonts_mpl + fonts_system :
276+
for path in fonts_mpl + fonts_system:
276277
try:
277278
font = ft2font.FT2Font(path)
278279
prop = ttfFontProperty(font)
@@ -281,6 +282,5 @@ def test_get_font_list():
281282
pass
282283
available_fonts = sorted(list(set(ttf_fonts)))
283284
mpl_font_list = sorted(fontManager.get_font_list())
284-
285285
assert len(available_fonts) == len(mpl_font_list)
286-
assert available_fonts == mpl_font_list
286+
assert available_fonts == mpl_font_list

tutorials/text/text_props.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
#
209209
# # This is effectively translated to:
210210
# matplotlib.rcParams['font.family'] = ['Family1', 'SerifFamily1', 'SerifFamily2', 'Family2']
211-
#
211+
#
212212
# .. note::
213213
# To access the full list of available fonts: ::
214214
#

0 commit comments

Comments
 (0)