mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 19:09:16 -04:00
17 lines
384 B
Python
17 lines
384 B
Python
|
|
$FreeBSD$
|
|
|
|
--- psshlib/psshutil.py.orig
|
|
+++ psshlib/psshutil.py
|
|
@@ -15,7 +15,10 @@
|
|
if not pathnames:
|
|
return lines
|
|
for pathname in pathnames:
|
|
- f = open(pathname)
|
|
+ if pathname == "-":
|
|
+ f = open("/dev/stdin")
|
|
+ else:
|
|
+ f = open(pathname)
|
|
for line in f:
|
|
lines.append(line.strip())
|
|
f.close()
|