projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3fe0ec
)
Implemnt an urlencode that uses quote instead.
author
Joshua Roesslein
<jroesslein@gmail.com>
Mon, 16 Apr 2012 20:57:41 +0000
(15:57 -0500)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Mon, 16 Apr 2012 20:58:52 +0000
(15:58 -0500)
tweepy/utils.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/utils.py
b/tweepy/utils.py
index fbd090ab54533c7d0145c4a5ac4bdbf85d02cc65..52c6c79b94a2143bb7289b804731851617d8a743 100644
(file)
--- a/
tweepy/utils.py
+++ b/
tweepy/utils.py
@@
-7,6
+7,7
@@
import time
import htmlentitydefs
import re
import locale
+from urllib import quote
def parse_datetime(string):
@@
-96,3
+97,7
@@
def list_to_csv(item_list):
if item_list:
return ','.join([str(i) for i in item_list])
+def urlencode_noplus(query):
+ return '&'.join(['%s=%s' % (quote(str(k)), quote(str(v))) \
+ for k, v in query.iteritems()])
+