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

Skip to content

Commit 48e16ed

Browse files
committed
Remove dead code in patches
The pad variable was never used in this function, so it is being removed. It also depended on a kwarg, which was also not used.
1 parent 222a358 commit 48e16ed

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,18 +1593,12 @@ def _pprint_table(_table, leadingspace=2):
15931593
return "\n".join(lines)
15941594

15951595

1596-
def _pprint_styles(_styles, leadingspace=2):
1596+
def _pprint_styles(_styles):
15971597
"""
15981598
A helper function for the _Style class. Given the dictionary of
15991599
(stylename : styleclass), return a formatted string listing all the
16001600
styles. Used to update the documentation.
16011601
"""
1602-
# FIXME pad isn't used, which means leadingspace is not use.
1603-
if leadingspace:
1604-
pad = ' ' * leadingspace
1605-
else:
1606-
pad = ''
1607-
16081602
names, attrss, clss = [], [], []
16091603

16101604
import inspect

0 commit comments

Comments
 (0)