We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a42a74 + 0c09ecb commit 8d46d14Copy full SHA for 8d46d14
Interlace/lib/core/input.py
@@ -1,5 +1,6 @@
1
import os.path
2
import sys
3
+from io import TextIOWrapper
4
from argparse import ArgumentParser
5
from math import ceil
6
from random import sample, choice
@@ -252,7 +253,7 @@ def process_commands(arguments):
252
253
ranges.add(arguments.target)
254
else:
255
target_file = arguments.target_list
- if not os.path.exists(target_file):
256
+ if not isinstance(target_file, TextIOWrapper):
257
if not sys.stdin.isatty():
258
target_file = sys.stdin
259
ranges.update([target.strip() for target in target_file if target.strip()])
0 commit comments