mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-13 07:10:42 +01:00
12 lines
325 B
Python
Executable File
12 lines
325 B
Python
Executable File
#!/usr/bin/env python
|
|
# a small url encoder for testbench purposes
|
|
# written 2018-11-05 by Rainer Gerhards
|
|
# part of the rsyslog testbench, released under ASL 2.0
|
|
import sys
|
|
import urllib
|
|
|
|
if len(sys.argv) != 2:
|
|
print "ERROR: urlencode needs exactly one string as argument"
|
|
sys.exit(1)
|
|
print urllib.quote_plus(sys.argv[1])
|