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

Skip to content

Commit 9a7fd29

Browse files
committed
using pushValue and popValue
1 parent a973196 commit 9a7fd29

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/controller/handler.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
See the file 'doc/COPYING' for copying permission
88
"""
99

10+
from lib.core.common import popValue
11+
from lib.core.common import pushValue
1012
from lib.core.data import conf
1113
from lib.core.data import kb
1214
from lib.core.data import logger
@@ -64,9 +66,9 @@ def setHandler():
6466
dbmsAliases, _, _ = dbmsMap[i]
6567
if kb.htmlFp[-1].lower() in dbmsAliases:
6668
if i > 0:
67-
temp = dbmsMap[i]
68-
dbmsMap.remove(temp)
69-
dbmsMap.insert(0, temp)
69+
pushValue(dbmsMap[i])
70+
dbmsMap.remove(dbmsMap[i])
71+
dbmsMap.insert(0, popValue())
7072
break
7173

7274

0 commit comments

Comments
 (0)