Skip to content

Commit 44cfb9f

Browse files
committed
updated formatting for stdin check
1 parent 31ea6cb commit 44cfb9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

searchsploit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def nmapxml(file=""):
457457
try:
458458
content = open(file, "r").read()
459459
except:
460-
if(os.sys.stdin.isatty() == False):
460+
if(not os.sys.stdin.isatty()):
461461
content = os.sys.stdin.read()
462462
else:
463463
return True
@@ -631,7 +631,7 @@ def run():
631631
else:
632632
terms.append(argv[i])
633633

634-
if (os.sys.stdin.isatty() == False):
634+
if (not os.sys.stdin.isatty()):
635635
text = str(os.sys.stdin.read())
636636
terms.extend(text.split())
637637
if terms == []:

0 commit comments

Comments
 (0)