From a2d344672595e30b4329944342e61a6819705275 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Fri, 3 Sep 2021 08:55:26 +0200 Subject: Apply suggestions from code review I mixed up Python 2 and 3 in the try/except comment. Co-authored-by: Michael Howitz --- src/zope/i18n/_compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zope/i18n/_compat.py b/src/zope/i18n/_compat.py index 00fb20f..f6bf93b 100644 --- a/src/zope/i18n/_compat.py +++ b/src/zope/i18n/_compat.py @@ -1,8 +1,8 @@ # This gives a linting error because unicode is not defined on Python 3: # text_type = str if bytes is not str else unicode try: - # Python 3 + # Python 2 text_type = unicode except NameError: - # Python 2 + # Python 3 text_type = str -- cgit v1.2.1