[damned-lies] Make 'fin' variable always initialized



commit 8d6f0bea3520bd1516ae46140993cdeb0f5f134a
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Jul 4 10:57:04 2009 +0200

    Make 'fin' variable always initialized

 stats/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/utils.py b/stats/utils.py
index 8820b82..377208b 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -151,7 +151,7 @@ def read_makefile_variable(vcs_paths, variable):
             break
         except IOError:
             # probably file not found or unreadable
-            pass
+            fin = None
     if not fin:
         return None # no file found
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]