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

Commit

Permalink
Fix an issue where using exec w/ a trace function doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoV committed Aug 26, 2011
1 parent d299e5a commit b2a243f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Languages/IronPython/IronPython/Runtime/FunctionCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ internal object Call(CodeContext/*!*/ context) {
throw PythonOps.TypeError("cannot exec code object that contains free variables: {0}", co_freevars.__repr__(context));
}

if (Target == null) {
if (Target == null || (Target.Method != null && Target.Method.DeclaringType == typeof(PythonCallTargets))) {
UpdateDelegate(context.LanguageContext, true);
}

Expand Down

0 comments on commit b2a243f

Please sign in to comment.