mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 17:39:56 +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=[]):
|
def __init__(self, items=[]):
|
||||||
self.chunks = [[]]
|
self.chunks = [[]]
|
||||||
self.chunk_length = sys.maxint
|
self.chunk_length = sys.maxsize
|
||||||
self.cache = None
|
self.cache = None
|
||||||
self.filenames = set()
|
self.filenames = set()
|
||||||
self._os_remove = os.remove
|
self._os_remove = os.remove
|
||||||
|
@ -66,7 +66,7 @@ class BigArray(list):
|
||||||
def append(self, value):
|
def append(self, value):
|
||||||
self.chunks[-1].append(value)
|
self.chunks[-1].append(value)
|
||||||
|
|
||||||
if self.chunk_length == sys.maxint:
|
if self.chunk_length == sys.maxsize:
|
||||||
self._size_counter += _size_of(value)
|
self._size_counter += _size_of(value)
|
||||||
if self._size_counter >= BIGARRAY_CHUNK_SIZE:
|
if self._size_counter >= BIGARRAY_CHUNK_SIZE:
|
||||||
self.chunk_length = len(self.chunks[-1])
|
self.chunk_length = len(self.chunks[-1])
|
||||||
|
|
|
@ -426,7 +426,7 @@ DEFAULT_MSSQL_SCHEMA = "dbo"
|
||||||
HASH_MOD_ITEM_DISPLAY = 11
|
HASH_MOD_ITEM_DISPLAY = 11
|
||||||
|
|
||||||
# Maximum integer value
|
# Maximum integer value
|
||||||
MAX_INT = sys.maxint
|
MAX_INT = sys.maxsize
|
||||||
|
|
||||||
# Replacement for unsafe characters in dump table filenames
|
# Replacement for unsafe characters in dump table filenames
|
||||||
UNSAFE_DUMP_FILEPATH_REPLACEMENT = '_'
|
UNSAFE_DUMP_FILEPATH_REPLACEMENT = '_'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user