Skip to content

Commit 300fe14

Browse files
committed
Drop python 2 built-ins
1 parent 8592cfd commit 300fe14

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

MagicPython.YAML-tmLanguage

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -865,25 +865,24 @@ repository:
865865
match: |
866866
(?x)
867867
(?<!\.)\b(
868-
__import__ | abs | all | any | apply | callable | chr | cmp | coerce
869-
| compile | copyright | credits | delattr | dir | divmod | enumerate
870-
| eval | exec | execfile | exit | filter | format | getattr
871-
| globals | hasattr | hash | help | id | input | intern
868+
__import__ | abs | all | any | apply | callable | chr
869+
| compile | copyright | credits | delattr | dir | divmod
870+
| enumerate | eval | exec | exit | filter | format | getattr
871+
| globals | hasattr | hash | help | id | input
872872
| isinstance | issubclass | iter | len | license | locals | map
873873
| max | memoryview | min | next | open | ord | pow | print
874-
| quit | range | raw_input | reduce | reload | repr | round
875-
| setattr | sorted | sum | unichr | vars | zip
874+
| quit | range | reload | repr | round
875+
| setattr | sorted | sum | vars | zip
876876
)\b
877877
builtin-types:
878878
name: support.type.python
879879
match: |
880880
(?x)
881881
(?<!\.)\b(
882-
ascii | basestring | bin | bool | buffer | bytearray | bytes
883-
| classmethod | complex | dict | file | float | frozenset
884-
| hex | int | list | long | object | oct | property | reversed
882+
ascii | bin | bool | bytearray | bytes
883+
| classmethod | complex | dict | float | frozenset
884+
| hex | int | list | object | oct | property | reversed
885885
| set | slice | staticmethod | str | super | tuple | type
886-
| unicode | xrange
887886
)\b
888887
889888
magic-function-names:

MagicPython.tmLanguage

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@
165165
<key>match</key>
166166
<string>(?x)
167167
(?&lt;!\.)\b(
168-
__import__ | abs | all | any | apply | callable | chr | cmp | coerce
169-
| compile | copyright | credits | delattr | dir | divmod | enumerate
170-
| eval | exec | execfile | exit | filter | format | getattr
171-
| globals | hasattr | hash | help | id | input | intern
168+
__import__ | abs | all | any | apply | callable | chr
169+
| compile | copyright | credits | delattr | dir | divmod
170+
| enumerate | eval | exec | exit | filter | format | getattr
171+
| globals | hasattr | hash | help | id | input
172172
| isinstance | issubclass | iter | len | license | locals | map
173173
| max | memoryview | min | next | open | ord | pow | print
174-
| quit | range | raw_input | reduce | reload | repr | round
175-
| setattr | sorted | sum | unichr | vars | zip
174+
| quit | range | reload | repr | round
175+
| setattr | sorted | sum | vars | zip
176176
)\b
177177
</string>
178178
<key>name</key>
@@ -201,11 +201,10 @@
201201
<key>match</key>
202202
<string>(?x)
203203
(?&lt;!\.)\b(
204-
ascii | basestring | bin | bool | buffer | bytearray | bytes
205-
| classmethod | complex | dict | file | float | frozenset
206-
| hex | int | list | long | object | oct | property | reversed
204+
ascii | bin | bool | bytearray | bytes
205+
| classmethod | complex | dict | float | frozenset
206+
| hex | int | list | object | oct | property | reversed
207207
| set | slice | staticmethod | str | super | tuple | type
208-
| unicode | xrange
209208
)\b
210209
</string>
211210
<key>name</key>

test/builtins/builtins2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
Error
2+
file reduce intern raw_input unicode cmp basestring
3+
24

35

46
Error : source.python
7+
file reduce intern raw_input unicode cmp basestring : source.python

0 commit comments

Comments
 (0)