projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c612be
)
Fix path template bug.
author
Joshua Roesslein
<jroesslein@gmail.com>
Tue, 8 Dec 2009 07:07:15 +0000
(
01:07
-0600)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Tue, 8 Dec 2009 07:07:15 +0000
(
01:07
-0600)
tweepy/binder.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/binder.py
b/tweepy/binder.py
index 34d24b6186716d4f81e25a039436ccc6eeb55b27..37a7cd4326b06acf6a242592b3634fc694a1d034 100644
(file)
--- a/
tweepy/binder.py
+++ b/
tweepy/binder.py
@@
-84,11
+84,11
@@
def bind_api(path, parser, allowed_param=[], method='GET', require_auth=False,
if parameters:
# Replace any template variables in path
tpath = str(path)
- for template in re_path_template.findall(path):
+ for template in re_path_template.findall(
t
path):
name = template.strip('{}')
try:
value = urllib.quote(parameters[name])
- tpath = path.replace(template, value)
+ tpath =
t
path.replace(template, value)
except KeyError:
raise TweepError('Invalid path key: %s' % name)
del parameters[name]