summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2016-08-16 19:23:30 +0200
committerAnthon van der Neut <anthon@mnt.org>2016-08-16 19:23:30 +0200
commit4ec57e99a0f51156663ba7140551763e76c7d021 (patch)
tree756f41135ebdcfa3107cd941471d78377ce182ad /compat.py
parentc651cdf342b28c8fea45380cc1104ded0797c70a (diff)
downloadruamel.yaml-4ec57e99a0f51156663ba7140551763e76c7d021.tar.gz
further tweaking for running mypy in schema_salad0.12.2
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat.py b/compat.py
index e4b30ab..23cd968 100644
--- a/compat.py
+++ b/compat.py
@@ -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