Skip to content

Commit 6d5f350

Browse files
committed
Use __name__ instead of func_name for compatibility with Python 3.
1 parent d9ba665 commit 6d5f350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github2/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def __new__(cls, name, bases, attrs):
250250
for attr_name in attributes]))
251251

252252
def _contribute_method(name, func):
253-
func.func_name = name
253+
func.__name__ = name
254254
attrs[name] = func
255255

256256
def constructor(self, **kwargs):

0 commit comments

Comments
 (0)