Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ce2395

Browse files
committed
Minor refactoring
1 parent 3f4c010 commit 9ce2395

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

lib/core/target.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -506,16 +506,14 @@ def initTargetEnv():
506506
_setDBMS()
507507

508508
if conf.data:
509-
kb.postSpaceToPlus = '+' in conf.data
510-
511-
if re.search(r'%[0-9a-f]{2}', conf.data, re.I):
512-
class _(unicode):
513-
pass
514-
original = conf.data
515-
conf.data = _(urldecode(conf.data))
516-
setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original)
517-
else:
518-
conf.data = urldecode(conf.data)
509+
class _(unicode):
510+
pass
511+
512+
original = conf.data
513+
conf.data = _(urldecode(conf.data))
514+
setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original)
515+
516+
kb.postSpaceToPlus = '+' in original
519517

520518
def setupTargetEnv():
521519
_createTargetDirs()

0 commit comments

Comments
 (0)