Skip to content

Commit 4d4205f

Browse files
committed
fix for py27
1 parent 33d9afd commit 4d4205f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sasctl/utils/pyml2ds/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import io
21
import os
32
import pickle
43
import xml.etree.ElementTree as etree
@@ -95,7 +94,7 @@ def pyml2ds(in_file, out_var_name="P_TARGET"):
9594

9695
# Parser is currently written to expect a file input
9796
# Until refactored, use StringIO to collect the text in memory
98-
with io.StringIO() as f:
97+
with six.StringIO() as f:
9998
parser.translate(f)
10099

101100
# Return contents of "file"

0 commit comments

Comments
 (0)