Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7a57fde

Browse filesBrowse files
committed
DOC: Sort aliased property names in listing.
1 parent a9a0251 commit 7a57fde
Copy full SHA for 7a57fde

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,8 +1267,7 @@ def aliased_name(self, s):
12671267

12681268
if s in self.aliasd:
12691269
return s + ''.join([' or %s' % x
1270-
for x
1271-
in six.iterkeys(self.aliasd[s])])
1270+
for x in sorted(self.aliasd[s])])
12721271
else:
12731272
return s
12741273

@@ -1284,8 +1283,7 @@ def aliased_name_rest(self, s, target):
12841283

12851284
if s in self.aliasd:
12861285
aliases = ''.join([' or %s' % x
1287-
for x
1288-
in six.iterkeys(self.aliasd[s])])
1286+
for x in sorted(self.aliasd[s])])
12891287
else:
12901288
aliases = ''
12911289
return ':meth:`%s <%s>`%s' % (s, target, aliases)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.