Skip to content

Commit 42eeb93

Browse files
committed
-
1 parent 85d7eee commit 42eeb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_toolbox/monkeypatching_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def decorator(function):
6666
name_ = function.getter.__name__
6767
elif isinstance(function, (classmethod, staticmethod)):
6868
if sys.version_info[:2] <= (2, 6):
69-
name_ = function.__name__
69+
raise NotImplementedError('Not supported on Python 2.6.')
7070
name_ = function.__func__.__name__
7171
else:
7272
raise NotImplemented("`monkeypatch_method` doesn't know how "

0 commit comments

Comments
 (0)