mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-21 19:22:48 +00:00
Couple of patches for Travis
This commit is contained in:
parent
7ddb8f7cbe
commit
a286734c57
4 changed files with 33 additions and 13 deletions
|
|
@ -68,10 +68,7 @@ def purge(directory):
|
|||
except:
|
||||
pass
|
||||
|
||||
if six.PY2:
|
||||
dirpaths.sort(cmp=lambda x, y: y.count(os.path.sep) - x.count(os.path.sep))
|
||||
else:
|
||||
dirpaths.sort(key=functools.cmp_to_key(lambda x, y: y.count(os.path.sep) - x.count(os.path.sep)))
|
||||
dirpaths.sort(key=functools.cmp_to_key(lambda x, y: y.count(os.path.sep) - x.count(os.path.sep)))
|
||||
|
||||
logger.debug("renaming directory names to random values")
|
||||
for dirpath in dirpaths:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue