diff options
author | Marcel Hellkamp <marc@gsites.de> | 2022-08-03 15:39:17 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2022-08-03 15:39:17 +0200 |
commit | 69fd3f6202caecda2e2f915e67c81a2bb099e998 (patch) | |
tree | f0743d08c53940357cf1058af8f052ede53f9555 | |
parent | 6879ecfdb80dae91f892694d54d62990103366de (diff) | |
download | bottle-69fd3f6202caecda2e2f915e67c81a2bb099e998.tar.gz |
fix: Include keyword-only-args in getarcspec() polyfill
-rw-r--r-- | bottle.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -92,7 +92,12 @@ if py3k: import pickle from io import BytesIO from configparser import ConfigParser - from inspect import getfullargspec as getargspec + from inspect import getfullargspec + def getargspec(func): + spec = getfullargspec(func) + kwargs = makelist(spec[0]) + makelist(spec.kwonlyargs) + return kwargs, spec[1], spec[2], spec[3] + basestring = str unicode = str json_loads = lambda s: json_lds(touni(s)) |