Skip to content

Commit 7404698

Browse files
author
Carl Robben
committed
Fix attribute error in atom. Resolves google#29
1 parent f85797c commit 7404698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/atom/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def optional_warn_function(*args, **kwargs):
9393
# Preserve the original name to avoid masking all decorated functions as
9494
# 'deprecated_function'
9595
try:
96-
optional_warn_function.func_name = f.func_name
96+
optional_warn_function.func_name = f.__name__
9797
except TypeError:
9898
pass # In Python2.3 we can't set the func_name
9999
return optional_warn_function

0 commit comments

Comments
 (0)