From 90ff58398817d51e45889eb2f2c2163e8b7a8aec Mon Sep 17 00:00:00 2001 From: Pawel Jasinski Date: Sat, 7 Sep 2013 12:21:25 +0200 Subject: [PATCH] fix for cp34389 - added missing lineno and col_offset --- Languages/IronPython/IronPython/Modules/_ast.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Languages/IronPython/IronPython/Modules/_ast.cs b/Languages/IronPython/IronPython/Modules/_ast.cs index f5d6e64b80..e2045a9eaa 100755 --- a/Languages/IronPython/IronPython/Modules/_ast.cs +++ b/Languages/IronPython/IronPython/Modules/_ast.cs @@ -293,9 +293,11 @@ internal static stmt Convert(Statement stmt) { internal static stmt Convert(TryStatement stmt) { if (stmt.Finally != null) { PythonList body; - if (stmt.Handlers != null && stmt.Handlers.Count != 0) - body = PythonOps.MakeListNoCopy(new TryExcept(stmt)); - else + if (stmt.Handlers != null && stmt.Handlers.Count != 0) { + stmt tryExcept = new TryExcept(stmt); + tryExcept.GetSourceLocation(stmt); + body = PythonOps.MakeListNoCopy(tryExcept); + } else body = ConvertStatements(stmt.Body); return new TryFinally(body, ConvertStatements(stmt.Finally));