From 834dc39e6dbc4dba952de063f3b29ce67b68875d Mon Sep 17 00:00:00 2001
From: cclauss
Date: Thu, 11 Jan 2018 01:06:08 +0100
Subject: [PATCH] unicode() --> six.u() for Python 3 compatibility
__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