summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2016-09-05 15:18:19 +0200
committerAnthon van der Neut <anthon@mnt.org>2016-09-05 15:18:19 +0200
commit121dfba49da9d9e94f137f09a30eebdcd786e62b (patch)
treebeaafcf5e2027aaa743be727a340c3fbd56125f5 /compat.py
parent10b723f400bc8be58d068f8fdeca2a5332ae837d (diff)
downloadruamel.yaml-121dfba49da9d9e94f137f09a30eebdcd786e62b.tar.gz
rewrite of 32 bit support based on exception0.12.10
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/compat.py b/compat.py
index 3a4af90..001fbf9 100644
--- a/compat.py
+++ b/compat.py
@@ -7,7 +7,6 @@ from __future__ import print_function
import sys
import os
import types
-import sysconfig
try:
from ruamel.ordereddict import ordereddict # type: ignore
@@ -37,11 +36,6 @@ except:
PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3
-# 4 if 32 bit unicode supported, 2 e.g. on MacOS (issue 56)
-UNICODE_SIZE = sysconfig.get_config_vars().get(
- 'SIZEOF_WCHAR_T',
- sysconfig.get_config_vars().get('Py_UNICODE_SIZE', 4))
-
if PY3:
def utf8(s):