8000 Minor style changes. · matplotlib/matplotlib@486aa0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 486aa0c

Browse files
committed
Minor style changes.
1 parent 5d04619 commit 486aa0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,6 @@ class so far, an alias named ``get_alias`` will be defined; the same will
27892789
def make_alias(name): # Enfore a closure over *name*.
27902790
def method(self, *args, **kwargs):
27912791
return getattr(self, name)(*args, **kwargs)
2792-
method.__doc__ = "alias for {}".format(name)
27932792
return method
27942793

27952794
for prop, aliases in alias_d.items():
@@ -2800,6 +2799,7 @@ def method(self, *args, **kwargs):
28002799
for alias in aliases:
28012800
method = make_alias(prefix + prop)
28022801
method.__name__ = str(prefix + alias) # Py2 compat.
2802+
method.__doc__ = "alias for `{}`".format(prefix + prop)
28032803
local_d[prefix + alias] = method
28042804
if not exists:
28052805
raise ValueError("property {} does not exist".format(prop))

0 commit comments

Comments
 (0)
0