8000 Correct Accepts string · matplotlib/matplotlib@ed64871 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed64871

Browse files
committed
Correct Accepts string
1 parent ee964f6 commit ed64871

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/patches.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,8 +1739,10 @@ def _simpleprint_styles(_styles):
17391739
(stylename : styleclass), return a string rep of the list of keys.
17401740
Used to update the documentation.
17411741
"""
1742-
1743-
return str([i for i in list(_styles.keys())])
1742+
styles = "[ \'"
1743+
styles += "\' | \'".join(str(i) for i in sorted(_styles.keys()))
1744+
styles += "\' ]"
1745+
return styles
17441746

17451747

17461748
class _Style(object):

0 commit comments

Comments
 (0)
0