Next / Previous / Contents / Shipman's homepage

24. Scan.close(): Close the stream

logscan.py
# - - -   S c a n . c l o s e

    def close(self):
        '''Close the input stream.
        '''
        if self.file:
            self.file.close()
            self.file = None