8000 Partially Revert "Adds an unchecked version to get a BorrowedReferenc… · pythonnet/pythonnet@2343f89 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2343f89

Browse files
author
Félix Bourbonnais
committed
Partially Revert "Adds an unchecked version to get a BorrowedReference pointer"
We Don't support python 2 anymore, but the CI machines may still be using it to build.
1 parent 6aa75c5 commit 2343f89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/geninterop/geninterop.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
import sysconfig
2222
import subprocess
2323

24-
from StringIO import StringIO
24+
if sys.version_info.major > 2:
25+
from io import StringIO
26+
else:
27+
from StringIO import StringIO
2528

2629
from pycparser import c_ast, c_parser
2730

0 commit comments

Comments
 (0)
0