diff options
Diffstat (limited to 'Lib/gettext.py')
-rw-r--r-- | Lib/gettext.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/gettext.py b/Lib/gettext.py index 311e923..a23c2ac 100644 --- a/Lib/gettext.py +++ b/Lib/gettext.py @@ -77,10 +77,7 @@ def c2py(plural): Python lambda function that implements an equivalent expression. """ # Security check, allow only the "n" identifier - try: - from cStringIO import StringIO - except ImportError: - from StringIO import StringIO + from io import StringIO import token, tokenize tokens = tokenize.generate_tokens(StringIO(plural).readline) try: |