mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor patch
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user