close method

close

Closes the current stream and releases any resources.

def close(self):
    ...

See Also