projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7c87ed
)
cStringIO fix.
author
Kenneth Reitz
<me@kennethreitz.com>
Fri, 18 Feb 2011 21:00:34 +0000
(16:00 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Fri, 18 Feb 2011 21:00:34 +0000
(16:00 -0500)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 7ea35343aeb40510d911e404b639abb6a76e368b..963abbc1d2be8213d0740cf660e25b18ca4a5a87 100644
(file)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-2,7
+2,11
@@
# -*- coding: utf-8 -*-
import unittest
-from cStringIO import StringIO
+
+try:
+ from cStringIO import StringIO
+except ImportError:
+ from StringIO import StringIO
import requests