From e8eea1b0f5db217fd25f5bd5fe895a4d43320a02 Mon Sep 17 00:00:00 2001 From: ldaverio Date: Fri, 1 May 2015 19:15:33 +0200 Subject: [PATCH] Temporarily revert commit d9bc582, until pull request #18 is processed. --- mako/ext/linguaplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mako/ext/linguaplugin.py b/mako/ext/linguaplugin.py index 4c72589..0e2065e 100644 --- a/mako/ext/linguaplugin.py +++ b/mako/ext/linguaplugin.py @@ -33,7 +33,7 @@ def process_python(self, code, code_lineno, translator_strings): source += compat.b(' pass') code = io.BytesIO(source) for msg in self.python_extractor( - self.filename, self.options, code, code_lineno - 1): + self.filename, self.options, code, code_lineno): if translator_strings: msg = Message(msg.msgctxt, msg.msgid, msg.msgid_plural, msg.flags,