From 9bff9d01ce16589201f57ffef27ea84744951c11 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 11 Jan 2018 01:20:54 +0100 Subject: [PATCH] unicode() --> six.u() for Python 3 compatibility (#111) __unicode()__ was removed from Python 3 because all strs are unicode. Executing these lines in Python 3 would raise a NameError. * https://pythonhosted.org/six/#six.u --- fire/parser_fuzz_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fire/parser_fuzz_test.py b/fire/parser_fuzz_test.py index bb8543e8..0c06a351 100644 --- a/fire/parser_fuzz_test.py +++ b/fire/parser_fuzz_test.py @@ -67,8 +67,8 @@ def testDefaultParseValueFuzz(self, value): raise try: - uvalue = unicode(value) - uresult = unicode(result) + uvalue = six.u(value) + uresult = six.u(result) except UnicodeDecodeError: # This is not what we're testing. return