Skip to content
Snippets Groups Projects
Commit fc7c919b authored by Baohua Yang's avatar Baohua Yang
Browse files

Close the file when done with it.

parent 5da93762
No related branches found
No related tags found
No related merge requests found
......@@ -297,6 +297,7 @@ def do_source( self, line ):
break
except IOError:
error( 'error reading file %s\n' % args[ 0 ] )
self.inputFile.close()
self.inputFile = None
def do_dpctl( self, line ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment