[gnoduino] fix error in commit "Bug 690383 - Extracted prototypes..."



commit ae00f7c6478d98208bea19a5846b673c59c1e9db
Author: Lucian Langa <lucilanga gnome org>
Date:   Thu Jan 3 01:32:54 2013 +0100

    fix error in commit "Bug 690383 - Extracted prototypes..."

 src/preproc.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/preproc.py b/src/preproc.py
index 02d45f2..989808e 100644
--- a/src/preproc.py
+++ b/src/preproc.py
@@ -39,6 +39,11 @@ def firstStatement(instr):
 def lastInclude(instr):
 	m = re.finditer(r"^#include\s+[\w+\".<>\-]+", instr, re.M)
 	return max(enumerate(m))[1].end()
+	try:
+		return max(enumerate(m))[1].end()
+	except:
+		return 0
+
 
 def findPrototype(instr):
 	pro = []



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