MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / WSGIFileWrapper

Class WSGIFileWrapper

thirdparty/bottle/bottle.py:3012–3023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3010
3011
3012class WSGIFileWrapper(object):
3013 def __init__(self, fp, buffer_size=1024 * 64):
3014 self.fp, self.buffer_size = fp, buffer_size
3015 for attr in 'fileno', 'close', 'read', 'readlines', 'tell', 'seek':
3016 if hasattr(fp, attr): setattr(self, attr, getattr(fp, attr))
3017
3018 def __iter__(self):
3019 buff, read = self.buffer_size, self.read
3020 part = read(buff)
3021 while part:
3022 yield part
3023 part = read(buff)
3024
3025
3026class _closeiter(object):

Callers 1

_castMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…