Commits

Danny Navarro committed f875176

stringIO for python2.7

  • Participants
  • Parent commits e5018b5

Comments (0)

Files changed (1)

File tests/test_response.py

-from StringIO import StringIO
 from nose.tools import eq_, ok_, assert_raises
 from webob import *
 from webob import BaseRequest
-from cStringIO import StringIO
+import sys
+if sys.version >= '2.7':
+    from io import BytesIO as StringIO
+else:
+    from cStringIO import StringIO
 
 def simple_app(environ, start_response):
     start_response('200 OK', [