diff options
author | Anthon van der Neut <anthon@mnt.org> | 2016-08-16 19:23:30 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2016-08-16 19:23:30 +0200 |
commit | 4ec57e99a0f51156663ba7140551763e76c7d021 (patch) | |
tree | 756f41135ebdcfa3107cd941471d78377ce182ad /compat.py | |
parent | c651cdf342b28c8fea45380cc1104ded0797c70a (diff) | |
download | ruamel.yaml-4ec57e99a0f51156663ba7140551763e76c7d021.tar.gz |
further tweaking for running mypy in schema_salad0.12.2
Diffstat (limited to 'compat.py')
-rw-r--r-- | compat.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -64,7 +64,7 @@ if PY3: binary_type = bytes MAXSIZE = sys.maxsize - unichr = chr # type: ignore + unichr = chr import io StringIO = io.StringIO BytesIO = io.BytesIO @@ -76,7 +76,8 @@ else: text_type = unicode binary_type = str - unichr = unichr # type: ignore to allow importing + # to allow importing + unichr = unichr # type: ignore from StringIO import StringIO as _StringIO StringIO = _StringIO import cStringIO |