python3: fixed various code issues
- iterators - use of u''
This commit is contained in:
parent
7556b374d5
commit
34af9cfa2f
39 changed files with 182 additions and 188 deletions
|
|
@ -24,7 +24,7 @@ import shutil
|
|||
import tarfile
|
||||
import tempfile
|
||||
import zipfile
|
||||
from io import StringIO
|
||||
import io
|
||||
|
||||
import mock
|
||||
import pytest
|
||||
|
|
@ -108,7 +108,7 @@ class TestArchives(BackendTestMixin):
|
|||
|
||||
for x in range(5):
|
||||
node_path = '%d/file_%d.txt' % (x, x)
|
||||
decompressed = StringIO.StringIO()
|
||||
decompressed = io.StringIO()
|
||||
decompressed.write(out.read('repo/' + node_path))
|
||||
assert decompressed.getvalue() == \
|
||||
self.tip.get_node(node_path).content
|
||||
|
|
@ -126,7 +126,7 @@ class TestArchives(BackendTestMixin):
|
|||
|
||||
for x in range(5):
|
||||
node_path = '%d/file_%d.txt' % (x, x)
|
||||
decompressed = StringIO.StringIO()
|
||||
decompressed = io.StringIO()
|
||||
decompressed.write(out.read('repo/' + node_path))
|
||||
assert decompressed.getvalue() == \
|
||||
self.tip.get_node(node_path).content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue