close method

close(self)

Closes the current stream and releases any resources.

def close(self):
    ...

See Also