|
|
@ -196,17 +196,3 @@ def cleanString(toclean): |
|
|
|
cleaned = re.sub('[^A-Za-z0-9]+', '', toclean) |
|
|
|
|
|
|
|
return cleaned |
|
|
|
|
|
|
|
def decodeArgumentStrings(options, encoding): |
|
|
|
# Python crash when decoding from UTF-8 to UTF-8, so we prevent this |
|
|
|
if "utf-8" == encoding.lower(): |
|
|
|
return; |
|
|
|
|
|
|
|
if options["--name"] is not None: |
|
|
|
options["--name"] = options["--name"].decode(encoding) |
|
|
|
|
|
|
|
if options["--description"] is not None: |
|
|
|
options["--description"] = options["--description"].decode(encoding) |
|
|
|
|
|
|
|
if options["--tags"] is not None: |
|
|
|
options["--tags"] = options["--tags"].decode(encoding) |