[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix logic in eval_file
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Mar 26, 2020
1 parent b0ae148 commit 501059a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/eval.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void exec(const char (&s)[N], object global = globals(), object local = object()
eval<eval_statements>(s, global, local);
}

#if defined(PYPY_VERSION) && PY_VERSION_MAJOR < 3
#if defined(PYPY_VERSION) && PY_VERSION_MAJOR >= 3
template <eval_mode mode = eval_statements>
object eval_file(str, object, object) {
pybind11_fail("eval_file not supported in PyPy3. Use eval");
Expand Down

0 comments on commit 501059a

Please sign in to comment.