##// END OF EJS Templates
python3: fixed usage of stringIO module
super-admin -
r4921:16048ea0 default
parent child Browse files
Show More
@@ -20,7 +20,7 b''
20
20
21
21
22 import uuid
22 import uuid
23 import StringIO
23 from io import StringIO
24 import pathlib2
24 import pathlib2
25
25
26
26
@@ -627,7 +627,7 b' else:'
627 def indexbytes(buf, i):
627 def indexbytes(buf, i):
628 return ord(buf[i])
628 return ord(buf[i])
629 iterbytes = functools.partial(itertools.imap, ord)
629 iterbytes = functools.partial(itertools.imap, ord)
630 import StringIO
630 from io import StringIO
631 StringIO = BytesIO = StringIO.StringIO
631 StringIO = BytesIO = StringIO.StringIO
632 _assertCountEqual = "assertItemsEqual"
632 _assertCountEqual = "assertItemsEqual"
633 _assertRaisesRegex = "assertRaisesRegexp"
633 _assertRaisesRegex = "assertRaisesRegexp"
@@ -4,7 +4,7 b''
4 At the moment, this isn't so much based off of ANSI as much as
4 At the moment, this isn't so much based off of ANSI as much as
5 things that just happen to work with multiple databases.
5 things that just happen to work with multiple databases.
6 """
6 """
7 import StringIO
7 from io import StringIO
8
8
9 import sqlalchemy as sa
9 import sqlalchemy as sa
10 from sqlalchemy.schema import SchemaVisitor
10 from sqlalchemy.schema import SchemaVisitor
@@ -5,7 +5,7 b' import shutil'
5 import warnings
5 import warnings
6 import logging
6 import logging
7 import inspect
7 import inspect
8 from StringIO import StringIO
8 from io import StringIO
9
9
10 from rhodecode.lib.dbmigrate import migrate
10 from rhodecode.lib.dbmigrate import migrate
11 from rhodecode.lib.dbmigrate.migrate.versioning import genmodel, schemadiff
11 from rhodecode.lib.dbmigrate.migrate.versioning import genmodel, schemadiff
@@ -33,7 +33,7 b' http://web.archive.org/web/2011071803522'
33
33
34
34
35 import datetime
35 import datetime
36 from StringIO import StringIO
36 from io import StringIO
37
37
38 import pytz
38 import pytz
39 from six.moves.urllib import parse as urlparse
39 from six.moves.urllib import parse as urlparse
@@ -30,7 +30,7 b' import collections'
30 import os
30 import os
31 import random
31 import random
32 import hashlib
32 import hashlib
33 import StringIO
33 from io import StringIO
34 import textwrap
34 import textwrap
35 import urllib.request, urllib.parse, urllib.error
35 import urllib.request, urllib.parse, urllib.error
36 import math
36 import math
@@ -28,7 +28,7 b' import re'
28 import logging
28 import logging
29 import importlib
29 import importlib
30 from functools import wraps
30 from functools import wraps
31 from StringIO import StringIO
31 from io import StringIO
32 from lxml import etree
32 from lxml import etree
33
33
34 import time
34 import time
@@ -25,7 +25,7 b' GIT commit module'
25 import re
25 import re
26 import stat
26 import stat
27 from itertools import chain
27 from itertools import chain
28 from StringIO import StringIO
28 from io import StringIO
29
29
30 from zope.cachedescriptors.property import Lazy as LazyProperty
30 from zope.cachedescriptors.property import Lazy as LazyProperty
31
31
@@ -18,7 +18,7 b''
18 # RhodeCode Enterprise Edition, including its added features, Support services,
18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 # and proprietary license terms, please see https://rhodecode.com/licenses/
19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20
20
21 from StringIO import StringIO
21 from io import StringIO
22
22
23 import pytest
23 import pytest
24 from mock import patch, Mock
24 from mock import patch, Mock
@@ -20,7 +20,7 b''
20
20
21 import json
21 import json
22 import logging
22 import logging
23 from StringIO import StringIO
23 from io import StringIO
24
24
25 import mock
25 import mock
26 import pytest
26 import pytest
@@ -24,7 +24,7 b' import shutil'
24 import tarfile
24 import tarfile
25 import tempfile
25 import tempfile
26 import zipfile
26 import zipfile
27 import StringIO
27 from io import StringIO
28
28
29 import mock
29 import mock
30 import pytest
30 import pytest
General Comments 0
You need to be logged in to leave comments. Login now