|
a/scripts/wiki-post.py |
|
b/scripts/wiki-post.py |
|
... |
|
... |
39 |
else:
|
39 |
else:
|
40 |
return s
|
40 |
return s
|
41 |
|
41 |
|
42 |
def generate_smart_str(params):
|
42 |
def generate_smart_str(params):
|
43 |
for (key, value) in params:
|
43 |
for (key, value) in params:
|
44 |
if value is None: continue
|
|
|
45 |
yield smart_str(key), smart_str(value)
|
44 |
yield smart_str(key), smart_str(value)
|
46 |
|
45 |
|
47 |
def urlencode(params):
|
46 |
def urlencode(params):
|
48 |
"""
|
47 |
"""
|
49 |
A version of Python's urllib.urlencode() function that can operate on
|
48 |
A version of Python's urllib.urlencode() function that can operate on
|