Commits

Michał Górny committed 4d95765

BashParser: use del instead of explicit .terminate().

Comments (0)

Files changed (2)

smartliverebuild/bashparse.py

 
 		return dict(zip(vars, spl))
 
-	def terminate(self):
+	def __del__(self):
 		self._bashproc.terminate()
 		self._bashproc.communicate()
 		self._tmpf.close()

smartliverebuild/core.py

 							out.err('Error enumerating %s: [%s] %s' % (cpv, e.__class__.__name__, e))
 							erraneous.append(cpv)
 				finally:
-					bash.terminate()
+					del bash
 
 				while processes:
 					if loop_iter((opts.jobs == 1)):