StringIO
Details
Diff Detail
Event Timeline
Can you comment on whether the differences between StringIO and io.StringIO might be significant? https://stackoverflow.com/a/49795277
StringIO is obsoleted in python3, replaced by io.StringIO. Yet io.StringIO only handles unicode string, while StringIO.StringIO only handles str, i.e. bytes.
tools/scan-view/share/ScanView.py | ||
---|---|---|
110 | Yeah, it's probably safer. It really depends on the content of `e`. It also appears that Python 2.7 supports io.BytesIO, so I'd rather use that uniformly. |
tools/scan-view/share/ScanView.py | ||
---|---|---|
115 | With Python 2 this fails with: |
bindings/python/tests/cindex/test_translation_unit.py | ||
---|---|---|
97 | May as well make this >= 3 | |
tools/clang-format/clang-format-diff.py | ||
32 | May as well make this >= 3 | |
tools/scan-view/share/ScanView.py | ||
17 | May as well make this >= 3 | |
288 | Why is this necessary? send_string returns a BytesIO object so why create a different one? |
Move it to the import list at the top of the file.