1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 01:19:03 +00:00

Silence some LGTM warnings, since the script is modified on install. #1834

This commit is contained in:
dmiller
2019-12-29 19:28:57 +00:00
parent 2a0c1eca5c
commit e3f884a301
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ def is_secure_dir(path, num_symlinks=0):
# by other users. The following line is replaced by the installation program.
INSTALL_LIB = None
if INSTALL_LIB is not None and is_secure_dir(INSTALL_LIB):
sys.path.append(INSTALL_LIB)
sys.path.append(INSTALL_LIB) # lgtm[py/unreachable-statement]
try:
import ndiff