blob: b725ed46303020c357069dacd2af536f15e3a3de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env python
import sys
# Support python 2 or 3
try:
from urllib.parse import quote
except ImportError:
from urllib import quote
# Converts the input string into a valid URL parameter string.
print (quote(' '.join(sys.argv[1:])))
|