From 40c95ca1b92ced97ba85b1a1dd5b46754f6ab0c7 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Wed, 22 Mar 2017 15:53:24 +0100 Subject: fix issue 106, Text undefined in 3.5.1 Reported by Charles Bouchard-L?gar? --- scalarstring.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scalarstring.py') diff --git a/scalarstring.py b/scalarstring.py index da43bcf..b02ad1d 100644 --- a/scalarstring.py +++ b/scalarstring.py @@ -3,10 +3,13 @@ from __future__ import absolute_import from __future__ import print_function -from typing import Text, Any, Dict, List # NOQA +import sys from ruamel.yaml.compat import text_type +if sys.version_info >= (3, 5, 2): + from typing import Text, Any, Dict, List # NOQA + __all__ = ["ScalarString", "PreservedScalarString", "SingleQuotedScalarString", "DoubleQuotedScalarString"] -- cgit v1.2.1