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

Skip to content

Commit c28e1b0

Browse files
committed
Fix new pep8 issue in legend_demo5
1 parent 30e6bb7 commit c28e1b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/pylab_examples/legend_demo5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def create_artists(self, legend, orig_handle,
4141
lw = orig_handle.get_linewidths()[i]
4242
except IndexError:
4343
lw = orig_handle.get_linewidths()[0]
44-
if dashes[0] != None:
44+
if dashes[0] is not None:
4545
legline.set_dashes(dashes[1])
4646
legline.set_color(color)
4747
legline.set_transform(trans)

0 commit comments

Comments
 (0)