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.
1 parent 4071b24 commit 8018be2Copy full SHA for 8018be2
src/diffpy/srfit/util/inpututils.py
@@ -38,6 +38,7 @@ def inputToString(inpt):
38
inptstr = ""
39
if hasattr(inpt, "read"):
40
inptstr = inpt.read()
41
+ # TODO remove handling of string input accept only file or filename
42
# FIXME check for typos in the file name
43
elif os.path.exists(inpt) or (len(inpt) < 80 and inpt.count("\n") == 0):
44
with open(inpt, 'r') as infile:
0 commit comments