mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 01:19:47 +03:00
Refactoring for Python 3 renames
* 2to3 `ls | grep -v thirdparty` -f renames
This commit is contained in:
parent
1b03ce2a3c
commit
ce4726390f
|
@ -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])
|
||||
|
|
|
@ -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 = '_'
|
||||
|
|
Loading…
Reference in New Issue
Block a user