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 4d4205f commit 4b4e33fCopy full SHA for 4b4e33f
src/sasctl/utils/pyml2ds/core.py
@@ -94,9 +94,9 @@ def pyml2ds(in_file, out_var_name="P_TARGET"):
94
95
# Parser is currently written to expect a file input
96
# Until refactored, use StringIO to collect the text in memory
97
- with six.StringIO() as f:
98
- parser.translate(f)
+ f = six.StringIO()
+ parser.translate(f)
99
100
- # Return contents of "file"
101
- f.seek(0)
102
- return f.read()
+ # Return contents of "file"
+ f.seek(0)
+ return f.read()
0 commit comments