From d59b3827d2bb62c1ed4db8030ed9e8e753b7f52d Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Mon, 28 Apr 2014 16:21:35 -0700 Subject: giscanner: Use unicode literals in all Python files Add unicode_literals future import which turns any string literal into a unicode string. Return unicode strings from the Python C extension module. Force writing of annotations (g-ir-annotation-tool) to output utf8 encoded data to stdout. This is an initial pass at following the "unicode sandwich" model of programming (http://nedbatchelder.com/text/unipain.html) needed for supporting Python 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438 --- giscanner/introspectablepass.py | 1 + 1 file changed, 1 insertion(+) (limited to 'giscanner/introspectablepass.py') diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py index 859118e3..19d1388f 100644 --- a/giscanner/introspectablepass.py +++ b/giscanner/introspectablepass.py @@ -19,6 +19,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function +from __future__ import unicode_literals from . import ast from . import message -- cgit v1.2.1