mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +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)
|
||||
"""
|
||||
|
||||
retval = sys.getsizeof(object)
|
||||
if hasattr(object, "__iter__"):
|
||||
return sum(_size_of(_) for _ in object)
|
||||
else:
|
||||
return sys.getsizeof(object)
|
||||
retval += sum(_size_of(_) for _ in object)
|
||||
return retval
|
||||
|
||||
class Cache(object):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user