diff options
author | Guido van Rossum <guido@python.org> | 2007-05-18 00:51:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-18 00:51:22 (GMT) |
commit | 68937b4cbcc3e88d4207e6391a311f9b7d067b71 (patch) | |
tree | b5fffb2ee6c7f523ced6f49f9ab35bc22413cbcf /Lib/gettext.py | |
parent | 7ac9d4020100b99b17eeddf65bafa8e87f9f293a (diff) | |
download | cpython-68937b4cbcc3e88d4207e6391a311f9b7d067b71.zip cpython-68937b4cbcc3e88d4207e6391a311f9b7d067b71.tar.gz cpython-68937b4cbcc3e88d4207e6391a311f9b7d067b71.tar.bz2 |
Change some uses of cStringIO.StringIO to io.StringIO.
This is undoubtedly insufficient and in some cases just as broken as before.
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: |