Michael Merickel
2015-02-06 8dc01249948b372f0796ace638a8f97e417205e1
move getargspec import into pyramid.compat
2 files modified
12 ■■■■ changed files
pyramid/compat.py 5 ●●●●● patch | view | raw | blame | history
pyramid/config/util.py 7 ●●●● patch | view | raw | blame | history
pyramid/compat.py
@@ -244,3 +244,8 @@
def is_bound_method(ob):
    return inspect.ismethod(ob) and getattr(ob, im_self, None) is not None
# support annotations and keyword-only arguments in PY3
if PY3:
    from inspect import getfullargspec as getargspec
else:
    from inspect import getargspec
pyramid/config/util.py
@@ -3,6 +3,7 @@
from pyramid.compat import (
    bytes_,
    getargspec,
    is_nonstr_iter,
    )
@@ -21,12 +22,6 @@
MAX_ORDER = 1 << 30
DEFAULT_PHASH = md5().hexdigest()
# support annotations and keyword-only arguments in PY3
try:
    getargspec = inspect.getfullargspec
except AttributeError:
    getargspec = inspect.getargspec
def as_sorted_tuple(val):
    if not is_nonstr_iter(val):