From 92e45f99e26c5cdc80a78adf345061ed3cd42402 Mon Sep 17 00:00:00 2001 From: William Forde Date: Fri, 10 Nov 2017 04:01:05 +0000 Subject: [PATCH] make sure that repr work with unicode --- script.module.codequick/lib/codequick/listing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.module.codequick/lib/codequick/listing.py b/script.module.codequick/lib/codequick/listing.py index 739e4c5..eb53551 100644 --- a/script.module.codequick/lib/codequick/listing.py +++ b/script.module.codequick/lib/codequick/listing.py @@ -789,7 +789,7 @@ def search(cls, callback, **params): def __repr__(self): """Returns representation of the object.""" - return "{}('{}')".format(self.__class__.__name__, self.label) + return "{}('{}')".format(self.__class__.__name__, ensure_native_str(self.label)) # Import callback functions required for listitem constructs