diff options
author | Jakub Wilk <jwilk@jwilk.net> | 2017-03-17 21:58:20 +0100 |
---|---|---|
committer | Jakub Wilk <jwilk@jwilk.net> | 2017-03-17 21:59:24 +0100 |
commit | 2fb40edc18fe8dfe808c48555d80f7c4729d5011 (patch) | |
tree | 175b7198bee38620fe1a648dfbd38d8e9c79ed59 /benchmark | |
parent | 62bd27b65c1bacc1d4c23ffdf3b454916a293c3b (diff) | |
download | python-lxml-2fb40edc18fe8dfe808c48555d80f7c4729d5011.tar.gz |
make io imports unconditional
The compat imports were needed for Python 2.5, which is no longer
supported.
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/benchbase.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/benchmark/benchbase.py b/benchmark/benchbase.py index 35829871..da0faefd 100644 --- a/benchmark/benchbase.py +++ b/benchmark/benchbase.py @@ -2,10 +2,7 @@ import sys, re, string, time, copy, gc from itertools import * import time -try: - from io import BytesIO -except ImportError: - from StringIO import StringIO as BytesIO +from io import BytesIO try: izip |