Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f9d856
)
Uglified util.formparams to be 2.5-compatible as well.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 8 Aug 2012 07:14:47 +0000
(09:14 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 8 Aug 2012 07:14:47 +0000
(09:14 +0200)
wrw/util.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/util.py
b/wrw/util.py
index
7276607
..
2e3a795
100644
(file)
--- a/
wrw/util.py
+++ b/
wrw/util.py
@@
-13,9
+13,9
@@
def formparams(callable):
spec = inspect.getargspec(callable)
args = dict(data.items())
args["req"] = req
- if not spec
.keywords
:
+ if not spec
[2]
:
for arg in list(args):
- if arg not in spec
.args
:
+ if arg not in spec
[0]
:
del args[arg]
return callable(**args)
return wrapper