Skip to content

Commit 00a946e

Browse files
committed
Merge pull request #3059 from charris/2to3-funcattrs
2to3: Apply `funcattrs` fixer. Closes #3058.
2 parents dc4c4bb + 53df2b4 commit 00a946e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phantom_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def base_cmp(a, b):
129129
doc = "%s%s\n\n%s" % (funcname, argspec, doc)
130130
obj = lambda: 0
131131
obj.__argspec_is_invalid_ = True
132-
obj.func_name = funcname
132+
obj.__name__ = funcname
133133
obj.__name__ = name
134134
obj.__doc__ = doc
135135
if inspect.isclass(object_cache[parent]):

0 commit comments

Comments
 (0)