summaryrefslogtreecommitdiff
path: root/gitdb/test/test_example.py
diff options
context:
space:
mode:
authorKevin Brown <kevin@kevinbrown.in>2014-07-13 21:49:51 -0400
committerKevin Brown <kevin@kevinbrown.in>2014-07-13 21:49:51 -0400
commit087803ee30456c4942d9c18d82c1d686eb081a27 (patch)
treefe2fa42285eb0e091a9b3cd895c1801df51ec10d /gitdb/test/test_example.py
parenta19a169ffd81e21f472dee8a9a38ac1c9fab9bd7 (diff)
downloadgitdb-087803ee30456c4942d9c18d82c1d686eb081a27.tar.gz
Making a bit of progress...
This changes the internals to use BytesIO over StringIO, which fixed a few of the failing tests in Python 3. We are only importing from `io` now, instead of the entire chain, as this is available in Python 2.6+.
Diffstat (limited to 'gitdb/test/test_example.py')
-rw-r--r--gitdb/test/test_example.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/gitdb/test/test_example.py b/gitdb/test/test_example.py
index f57cc50..c714f10 100644
--- a/gitdb/test/test_example.py
+++ b/gitdb/test/test_example.py
@@ -8,13 +8,7 @@ from gitdb import IStream
from gitdb.db import LooseObjectDB
from gitdb.util import pool
-try:
- from cStringIO import StringIO
-except ImportError:
- try:
- from StringIO import StringIO
- except ImportError:
- from io import StringIO
+from io import StringIO
from async import IteratorReader