diff options
author | Matt Turner <mattst88@gentoo.org> | 2021-03-04 14:23:47 -0500 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-03-06 01:05:16 -0800 |
commit | 21c6c0c1088ded78397594bfd78102361f8d837b (patch) | |
tree | 9488e978e2023fdb3072ec0d6c2259a0f1306e0d /lib/portage/tests/unicode/test_string_format.py | |
parent | Remove outdated mention of Python 2 from comment (diff) | |
download | portage-21c6c0c1088ded78397594bfd78102361f8d837b.tar.gz portage-21c6c0c1088ded78397594bfd78102361f8d837b.tar.bz2 portage-21c6c0c1088ded78397594bfd78102361f8d837b.zip |
lib: Remove outdated Python 2 comments
Fixes: 788c0e8bb ("Remove from __future__ import unicode_literals")
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/portage/tests/unicode/test_string_format.py')
-rw-r--r-- | lib/portage/tests/unicode/test_string_format.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/portage/tests/unicode/test_string_format.py b/lib/portage/tests/unicode/test_string_format.py index 3b994d622..54ac038a6 100644 --- a/lib/portage/tests/unicode/test_string_format.py +++ b/lib/portage/tests/unicode/test_string_format.py @@ -15,9 +15,6 @@ class StringFormatTestCase(TestCase): which may be either python2 or python3. """ - # We need unicode_literals in order to get some unicode test strings - # in a way that works in both python2 and python3. - unicode_strings = ( '\u2018', '\u2019', @@ -31,8 +28,6 @@ class StringFormatTestCase(TestCase): arg_bytes = _unicode_encode(arg_unicode, encoding=_encodings['content']) dependency_arg = DependencyArg(arg=arg_unicode) - # Use unicode_literals for unicode format string so that - # __unicode__() is called in Python 2. formatted_str = "%s" % (dependency_arg,) self.assertEqual(formatted_str, arg_unicode) @@ -48,8 +43,6 @@ class StringFormatTestCase(TestCase): arg_bytes = _unicode_encode(arg_unicode, encoding=_encodings['content']) e = PortageException(arg_unicode) - # Use unicode_literals for unicode format string so that - # __unicode__() is called in Python 2. formatted_str = "%s" % (e,) self.assertEqual(formatted_str, arg_unicode) @@ -66,8 +59,6 @@ class StringFormatTestCase(TestCase): for arg_unicode in self.unicode_strings: e = UseFlagDisplay(arg_unicode, enabled, forced) - # Use unicode_literals for unicode format string so that - # __unicode__() is called in Python 2. formatted_str = "%s" % (e,) self.assertEqual(isinstance(formatted_str, str), True) |