[vlc-commits] commit: python-vlc: add missing f.close() calls (Olivier Aubert )

git at videolan.org git at videolan.org
Thu Nov 18 18:45:30 CET 2010


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Thu Nov 18 08:26:20 2010 +0100| [ba24b5b33f987a26d3d7ed8f3d8cfec93ce62aff] | committer: Olivier Aubert 

python-vlc: add missing f.close() calls

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=ba24b5b33f987a26d3d7ed8f3d8cfec93ce62aff
---

 generate.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/generate.py b/generate.py
index 3c7aef8..10ef294 100755
--- a/generate.py
+++ b/generate.py
@@ -203,6 +203,7 @@ class Parser(object):
 
                 yield (typ, name, values, comment)
                 comment=""
+        f.close()
 
     def parse_include(self, name):
         """Parse include file.
@@ -282,6 +283,7 @@ class Parser(object):
                        params,
                        comment)
                 comment=''
+        f.close()
 
     def dump_methods(self):
         print "** Defined functions **"



More information about the vlc-commits mailing list