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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user