Making sqlmap compatible with PyPy/PyPy3

This commit is contained in:
Miroslav Stampar
2021-05-24 13:49:35 +02:00
parent da86486cd9
commit c4c1571902
4 changed files with 7 additions and 3 deletions

View File

@@ -22,7 +22,10 @@ from lib.core.exception import SqlmapSystemException
from lib.core.settings import BIGARRAY_CHUNK_SIZE
from lib.core.settings import BIGARRAY_COMPRESS_LEVEL
DEFAULT_SIZE_OF = sys.getsizeof(object())
try:
DEFAULT_SIZE_OF = sys.getsizeof(object())
except TypeError:
DEFAULT_SIZE_OF = 16
def _size_of(instance):
"""