Skip to content

Commit 6d4d308

Browse files
committed
Fix logic in eval_file
1 parent b0ae148 commit 6d4d308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/eval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void exec(const char (&s)[N], object global = globals(), object local = object()
6666
eval<eval_statements>(s, global, local);
6767
}
6868

69-
#if defined(PYPY_VERSION) && PY_VERSION_MAJOR < 3
69+
#if defined(PYPY_VERSION) && PY_VERSION_MAJOR > 3
7070
template <eval_mode mode = eval_statements>
7171
object eval_file(str, object, object) {
7272
pybind11_fail("eval_file not supported in PyPy3. Use eval");

0 commit comments

Comments
 (0)