Skip to content

Commit

Permalink
[build/cpython-defs] Update method list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Feb 17, 2020
1 parent 3d15163 commit a4c8592
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cpython_defs.py
Expand Up @@ -11,7 +11,7 @@

from core.util import log
# TODO: Could move these to a place where they don't depend on Oil
from frontend.lex import C, R
from frontend.lexer_def import C, R


C_DEF = [
Expand Down Expand Up @@ -316,7 +316,7 @@ def __call__(self, rel_path, def_name, method_name):
# We don't need top-level next(). The method should be good enough.
# iter is a field name
if (basename == 'bltinmodule.c' and
method_name in ('compile', 'format', 'next', 'vars', 'iter')):
method_name in ('compile', 'format', 'next', 'vars', 'iter', 'eval')):
return False
if basename == 'bltinmodule.c':
# Get "bootstrapping error" without this.
Expand Down
1 change: 1 addition & 0 deletions build/oil-defs/native/fastlex.c/methods.def
Expand Up @@ -7,6 +7,7 @@ static PyMethodDef methods[] = {
{"MatchPS1Token", fastlex_MatchPS1Token, METH_VARARGS},
{"MatchHistoryToken", fastlex_MatchHistoryToken, METH_VARARGS},
{"MatchBraceRangeToken", fastlex_MatchBraceRangeToken, METH_VARARGS},
{"MatchOption", fastlex_MatchOption, METH_VARARGS},
{"IsValidVarName", fastlex_IsValidVarName, METH_VARARGS},
{"IsPlainWord", fastlex_IsPlainWord, METH_VARARGS},
{"ShouldHijack", fastlex_ShouldHijack, METH_VARARGS},
Expand Down

0 comments on commit a4c8592

Please sign in to comment.