- Update to v4.81 * fix some typo's in docs * corrected some minor other things in docs * Python 3.9 is now included in the unit test runs * No actual code changes. - (update just to satisfy the weekly report on d:l:python* scripts) - Add patch Pyro4-pr238-py310-cmethod-smethod.patch * gh#irmen/Pyro4#238 OBS-URL: https://build.opensuse.org/request/show/941983 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro4?expand=0&rev=23
14 lines
704 B
Diff
14 lines
704 B
Diff
Index: Pyro4-4.81/src/Pyro4/core.py
|
|
===================================================================
|
|
--- Pyro4-4.81.orig/src/Pyro4/core.py
|
|
+++ Pyro4-4.81/src/Pyro4/core.py
|
|
@@ -987,7 +987,7 @@ def expose(method_or_class):
|
|
func._pyroExposed = True
|
|
return method_or_class
|
|
attrname = getattr(method_or_class, "__name__", None)
|
|
- if not attrname:
|
|
+ if not attrname or isinstance(method_or_class, (classmethod, staticmethod)):
|
|
# we could be dealing with a descriptor (classmethod/staticmethod), this means the order of the decorators is wrong
|
|
if inspect.ismethoddescriptor(method_or_class):
|
|
attrname = method_or_class.__get__(None, dict).__name__
|