diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/util.py')
-rw-r--r-- | tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/util.py b/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/util.py index 268d99e671d..6c8284cd074 100644 --- a/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/util.py +++ b/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/util.py @@ -47,7 +47,7 @@ except ImportError: md5_hash = md5.md5 sha1_hash = sha.sha -import StringIO +from six.moves import StringIO import logging import os import re @@ -68,7 +68,7 @@ def get_stack_trace(): TODO: Remove this when we only support Python 2.4 and above. Use traceback.format_exc instead. """ - out = StringIO.StringIO() + out = StringIO() traceback.print_exc(file=out) return out.getvalue() |