We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85d7eee commit 42eeb93Copy full SHA for 42eeb93
python_toolbox/monkeypatching_tools.py
@@ -66,7 +66,7 @@ def decorator(function):
66
name_ = function.getter.__name__
67
elif isinstance(function, (classmethod, staticmethod)):
68
if sys.version_info[:2] <= (2, 6):
69
- name_ = function.__name__
+ raise NotImplementedError('Not supported on Python 2.6.')
70
name_ = function.__func__.__name__
71
else:
72
raise NotImplemented("`monkeypatch_method` doesn't know how "
0 commit comments