Skip to content

Commit bf55a44

Browse files
committed
fix FutureWarning
comparison to `None` will result in an elementwise object comparison in the future.
1 parent b40d7e8 commit bf55a44

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

matplotlib2tikz/line2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def draw_line2d(data, obj):
5858
mark_options = ['solid']
5959
if extra_mark_options:
6060
mark_options.append(extra_mark_options)
61-
if marker_face_color in [None, 'none']:
61+
if marker_face_color is None or marker_face_color == 'none':
6262
mark_options.append('fill opacity=0')
6363
else:
6464
data, face_xcolor, _ = mycol.mpl_color2xcolor(

test/helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def assert_phash(fig, reference_phash):
144144
print('Uploaded output PNG file to %s' % out.decode('utf-8'))
145145

146146
assert reference_phash == phash
147-
148147
return
149148

150149

0 commit comments

Comments
 (0)