Skip to content

Commit 8018be2

Browse files
committed
NTS: drop muddled handling of string input
1 parent 4071b24 commit 8018be2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffpy/srfit/util/inpututils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def inputToString(inpt):
3838
inptstr = ""
3939
if hasattr(inpt, "read"):
4040
inptstr = inpt.read()
41+
# TODO remove handling of string input accept only file or filename
4142
# FIXME check for typos in the file name
4243
elif os.path.exists(inpt) or (len(inpt) < 80 and inpt.count("\n") == 0):
4344
with open(inpt, 'r') as infile:

0 commit comments

Comments
 (0)