From 477adaa6085b75bf8129ba859d35780844efdc93 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Prasad Date: Tue, 15 Nov 2016 13:01:24 +0530 Subject: [PATCH] Update __init__.py func_name is replaced with __name__ in python 3 --- src/atom/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom/__init__.py b/src/atom/__init__.py index 4d33af5a..4315a56b 100755 --- a/src/atom/__init__.py +++ b/src/atom/__init__.py @@ -93,7 +93,7 @@ def optional_warn_function(*args, **kwargs): # Preserve the original name to avoid masking all decorated functions as # 'deprecated_function' try: - optional_warn_function.func_name = f.func_name + optional_warn_function.func_name = f.__name__ except TypeError: pass # In Python2.3 we can't set the func_name return optional_warn_function