Skip to content

Commit 23a1fc6

Browse files
author
Albert Lopez
committed
Make code pep8 compliant
1 parent 4cb2331 commit 23a1fc6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

libnmap/process.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def __init__(self, targets="127.0.0.1",
8888
unsafe_opts = set(['-oG', '-oN', '-iL', '-oA', '-oS', '-oX',
8989
'--iflist', '--resume', '--stylesheet',
9090
'--datadir'])
91-
self.__is_windows = platform.system() == 'Windows' # more reliable than just using os.name()
91+
# more reliable than just using os.name() (cygwin)
92+
self.__is_windows = platform.system() == 'Windows'
9293
if fqp:
9394
if os.path.isfile(fqp) and os.access(fqp, os.X_OK):
9495
self.__nmap_binary = fqp
@@ -252,7 +253,8 @@ def run(self):
252253
return: return code from nmap execution
253254
"""
254255
self._run_init()
255-
_tmp_cmdline = self.__build_windows_cmdline() if self.__is_windows else shlex.split(self.__nmap_command_line)
256+
_tmp_cmdline = self.__build_windows_cmdline() if self.__is_windows \
257+
else shlex.split(self.__nmap_command_line)
256258
try:
257259
self.__nmap_proc = subprocess.Popen(args=_tmp_cmdline,
258260
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)