summaryrefslogtreecommitdiff
path: root/representer.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-04-19 15:13:02 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-04-19 15:13:02 +0200
commit870b961a3a6d72d8c7569cbc637c6cc553c1d907 (patch)
tree4185c36062b9b8c504075658b8dd5303285f3a20 /representer.py
parente3663d2b81399576b5a4edca9820971bf801e66a (diff)
downloadruamel.yaml-870b961a3a6d72d8c7569cbc637c6cc553c1d907.tar.gz
fix issue #116: Text not available in 3.5.0/3.5.10.14.8
If this solves the issue for you, please close it.
Diffstat (limited to 'representer.py')
-rw-r--r--representer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/representer.py b/representer.py
index 5e8ce51..464d505 100644
--- a/representer.py
+++ b/representer.py
@@ -2,7 +2,6 @@
from __future__ import print_function, absolute_import, division
-from typing import Dict, List, Any, Union, Text # NOQA
from ruamel.yaml.error import * # NOQA
from ruamel.yaml.nodes import * # NOQA
@@ -21,6 +20,9 @@ if PY3:
else:
import copy_reg as copyreg # type: ignore
+if sys.version_info >= (3, 5, 2):
+ from typing import Dict, List, Any, Union, Text # NOQA
+
__all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer',
'RepresenterError', 'RoundTripRepresenter']