Skip to content

Commit b1712e1

Browse files
committed
"apply" is not a bultin (was deprecated since Python 2.3, not in 3)
1 parent 252cdba commit b1712e1

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

grammars/MagicPython.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ repository:
16151615
match: '''
16161616
(?x)
16171617
(?<!\\.) \\b(
1618-
__import__ | abs | all | any | apply | ascii | bin | callable
1618+
__import__ | abs | all | any | ascii | bin | callable
16191619
| chr | compile | copyright | credits | delattr | dir | divmod
16201620
| enumerate | eval | exec | exit | filter | format | getattr
16211621
| globals | hasattr | hash | help | hex | id | input

grammars/MagicPython.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2579,7 +2579,7 @@ it&apos;s not tokenized as ellipsis.
25792579
<key>match</key>
25802580
<string>(?x)
25812581
(?&lt;!\.) \b(
2582-
__import__ | abs | all | any | apply | ascii | bin | callable
2582+
__import__ | abs | all | any | ascii | bin | callable
25832583
| chr | compile | copyright | credits | delattr | dir | divmod
25842584
| enumerate | eval | exec | exit | filter | format | getattr
25852585
| globals | hasattr | hash | help | hex | id | input

grammars/src/MagicPython.syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ repository:
10771077
match: |
10781078
(?x)
10791079
(?<!\.) \b(
1080-
__import__ | abs | all | any | apply | ascii | bin | callable
1080+
__import__ | abs | all | any | ascii | bin | callable
10811081
| chr | compile | copyright | credits | delattr | dir | divmod
10821082
| enumerate | eval | exec | exit | filter | format | getattr
10831083
| globals | hasattr | hash | help | hex | id | input

test/builtins/builtins2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Error
2-
file reduce intern raw_input unicode cmp basestring execfile long xrange
2+
file reduce intern raw_input unicode cmp basestring execfile long xrange apply
33

44

55

@@ -23,3 +23,5 @@
2323
long : source.python, variable.legacy.builtin.python
2424
: source.python
2525
xrange : source.python, variable.legacy.builtin.python
26+
: source.python
27+
apply : source.python

0 commit comments

Comments
 (0)