summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2017-03-17 21:58:20 +0100
committerJakub Wilk <jwilk@jwilk.net>2017-03-17 21:59:24 +0100
commit2fb40edc18fe8dfe808c48555d80f7c4729d5011 (patch)
tree175b7198bee38620fe1a648dfbd38d8e9c79ed59 /benchmark
parent62bd27b65c1bacc1d4c23ffdf3b454916a293c3b (diff)
downloadpython-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.py5
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