Refactoring for Python 3 renames

* 2to3 `ls | grep -v thirdparty` -f renames
This commit is contained in:
akun 2018-03-07 17:18:41 +08:00
parent 1b03ce2a3c
commit ce4726390f
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class BigArray(list):
def __init__(self, items=[]):
self.chunks = [[]]
self.chunk_length = sys.maxint
self.chunk_length = sys.maxsize
self.cache = None
self.filenames = set()
self._os_remove = os.remove
@ -66,7 +66,7 @@ class BigArray(list):
def append(self, value):
self.chunks[-1].append(value)
if self.chunk_length == sys.maxint:
if self.chunk_length == sys.maxsize:
self._size_counter += _size_of(value)
if self._size_counter >= BIGARRAY_CHUNK_SIZE:
self.chunk_length = len(self.chunks[-1])

View File

@ -426,7 +426,7 @@ DEFAULT_MSSQL_SCHEMA = "dbo"
HASH_MOD_ITEM_DISPLAY = 11
# Maximum integer value
MAX_INT = sys.maxint
MAX_INT = sys.maxsize
# Replacement for unsafe characters in dump table filenames
UNSAFE_DUMP_FILEPATH_REPLACEMENT = '_'