StringIO
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Can you comment on whether the differences between StringIO and io.StringIO might be significant? https://stackoverflow.com/a/49795277
Comment Actions
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 ↗ | (On Diff #176337) | 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 ↗ | (On Diff #176568) | With Python 2 this fails with: |
bindings/python/tests/cindex/test_translation_unit.py | ||
---|---|---|
97 ↗ | (On Diff #179060) | May as well make this >= 3 |
tools/clang-format/clang-format-diff.py | ||
32 ↗ | (On Diff #179060) | May as well make this >= 3 |
tools/scan-view/share/ScanView.py | ||
17 ↗ | (On Diff #179060) | May as well make this >= 3 |
288 ↗ | (On Diff #179060) | Why is this necessary? send_string returns a BytesIO object so why create a different one? |