Close the file when done with it.
This commit is contained in:
@@ -297,6 +297,7 @@ class CLI( Cmd ):
|
|||||||
break
|
break
|
||||||
except IOError:
|
except IOError:
|
||||||
error( 'error reading file %s\n' % args[ 0 ] )
|
error( 'error reading file %s\n' % args[ 0 ] )
|
||||||
|
self.inputFile.close()
|
||||||
self.inputFile = None
|
self.inputFile = None
|
||||||
|
|
||||||
def do_dpctl( self, line ):
|
def do_dpctl( self, line ):
|
||||||
|
|||||||
Reference in New Issue
Block a user