mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
28 lines
869 B
Diff
28 lines
869 B
Diff
Ref https://github.com/ukoethe/vigra/issues/502
|
|
|
|
--- a/vigranumpy/docsrc/conf.py.in
|
|
+++ b/vigranumpy/docsrc/conf.py.in
|
|
@@ -14,23 +14,6 @@
|
|
from __future__ import division, print_function
|
|
import sys, os, re
|
|
|
|
-# silent lots of 'arg is not a Python function' warnings
|
|
-import inspect
|
|
-
|
|
-_original_getargspec = inspect.getargspec
|
|
-
|
|
-def _getargspec_workaround(*args, **kw):
|
|
- try:
|
|
- return _original_getargspec(*args, **kw)
|
|
- except TypeError as e:
|
|
- if str(e).startswith('arg is not a Python function'):
|
|
- return inspect.ArgSpec([], None, None, None)
|
|
- else:
|
|
- raise
|
|
-
|
|
-inspect.getargspec = _getargspec_workaround
|
|
-_getargspec_workaround.__module__ = 'inspect'
|
|
-
|
|
# set the PATH of the current build, so that we don't create
|
|
# documentation for a possibly outdated installation
|
|
vigranumpy_path=r'@VIGRANUMPY_TMP_PATH@'
|