From 438db3b9b29e997a6fc2674c95a2c76192b5a567 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Mon, 15 Aug 2016 22:46:12 +0200 Subject: initial type info, drop 2.6 --- scalarstring.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scalarstring.py') diff --git a/scalarstring.py b/scalarstring.py index d3abaff..eb10910 100644 --- a/scalarstring.py +++ b/scalarstring.py @@ -3,14 +3,11 @@ from __future__ import absolute_import from __future__ import print_function +from ruamel.yaml.compat import text_type + __all__ = ["ScalarString", "PreservedScalarString", "SingleQuotedScalarString", "DoubleQuotedScalarString"] -try: - from .compat import text_type -except (ImportError, ValueError): # for Jython - from ruamel.yaml.compat import text_type - class ScalarString(text_type): def __new__(cls, *args, **kw): -- cgit v1.2.1