diff options
author | Maurits van Rees <m.van.rees@zestsoftware.nl> | 2021-09-03 08:55:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 08:55:26 +0200 |
commit | f740989fe042e5d75759995d613a67dbe21f8de6 (patch) | |
tree | 04cc501b706950571574b29a485845f18651c13e | |
parent | 44573fac3da34786dcb52cd4fb9477e29af2e5fe (diff) | |
download | zope-i18n-config-with-pure-python.tar.gz |
Apply suggestions from code review
config-with-pure-python
I mixed up Python 2 and 3 in the try/except comment.
Co-authored-by: Michael Howitz <mh@gocept.com>
-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 |