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