Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'paweljasinski/cp34389' into ipy-2.7-maint
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhardy committed Sep 8, 2013
2 parents b359c52 + 90ff583 commit 9674c81
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Languages/IronPython/IronPython/Modules/_ast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9674c81

Please sign in to comment.