mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Minor patch
This commit is contained in:
parent
c4c4ac13fe
commit
83add9fd9b
|
@ -23,10 +23,10 @@ def _size_of(object):
|
||||||
Returns total size of a given object (in bytes)
|
Returns total size of a given object (in bytes)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
retval = sys.getsizeof(object)
|
||||||
if hasattr(object, "__iter__"):
|
if hasattr(object, "__iter__"):
|
||||||
return sum(_size_of(_) for _ in object)
|
retval += sum(_size_of(_) for _ in object)
|
||||||
else:
|
return retval
|
||||||
return sys.getsizeof(object)
|
|
||||||
|
|
||||||
class Cache(object):
|
class Cache(object):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user