def read(self, amount):
if not self._bandwidth_limiting_enabled:<EOL><INDENT>return self._fileobj.read(amount)<EOL><DEDENT>self._bytes_seen += amount<EOL>if self._bytes_seen < self._bytes_threshold:<EOL><INDENT>return self._fileobj.read(amount)<EOL><DEDENT>self._consume_through_leaky_bucket()<EOL>return self._fileobj.read(amount)<EOL>
Read a specified amount

        Reads will only be throttled if bandwidth limiting is enabled.