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

Close the file when done with it.

parent a6a0cb43
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