diff options
author | Maurits van Rees <m.van.rees@zestsoftware.nl> | 2021-09-03 08:55:26 +0200 |
---|---|---|
committer | Maurits van Rees <maurits@vanrees.org> | 2021-09-03 10:44:42 +0200 |
commit | a2d344672595e30b4329944342e61a6819705275 (patch) | |
tree | 9a286ce2f99d4282e3b9a1828fe2489acbfbbcce /src/zope | |
parent | 72a8f425cc67f5215ef3583f06ea943a95fb798d (diff) | |
download | zope-i18n-a2d344672595e30b4329944342e61a6819705275.tar.gz |
Apply suggestions from code review
I mixed up Python 2 and 3 in the try/except comment.
Co-authored-by: Michael Howitz <mh@gocept.com>
Diffstat (limited to 'src/zope')
-rw-r--r-- | src/zope/i18n/_compat.py | 4 |
1 files 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 |