Minor refactoring

This commit is contained in:
Miroslav Stampar 2013-01-19 18:40:44 +01:00
parent 3f4c010370
commit 9ce2395405

View File

@ -506,16 +506,14 @@ def initTargetEnv():
_setDBMS()
if conf.data:
kb.postSpaceToPlus = '+' in conf.data
if re.search(r'%[0-9a-f]{2}', conf.data, re.I):
class _(unicode):
pass
original = conf.data
conf.data = _(urldecode(conf.data))
setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original)
else:
conf.data = urldecode(conf.data)
kb.postSpaceToPlus = '+' in original
def setupTargetEnv():
_createTargetDirs()