mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
remove set compat cruft
This commit is contained in:
parent
07d539d08b
commit
32e7aa6ab9
2 changed files with 0 additions and 12 deletions
|
@ -24,12 +24,6 @@ else:
|
|||
def _identityfunction(x):
|
||||
return x
|
||||
|
||||
def set(seq):
|
||||
s = {}
|
||||
for elem in seq:
|
||||
s[elem] = 1
|
||||
return s
|
||||
|
||||
_LITERAL_CODES = set([LITERAL, NOT_LITERAL])
|
||||
_REPEATING_CODES = set([REPEAT, MIN_REPEAT, MAX_REPEAT])
|
||||
_SUCCESS_CODES = set([SUCCESS, FAILURE])
|
||||
|
|
|
@ -16,12 +16,6 @@ import sys
|
|||
|
||||
from sre_constants import *
|
||||
|
||||
def set(seq):
|
||||
s = {}
|
||||
for elem in seq:
|
||||
s[elem] = 1
|
||||
return s
|
||||
|
||||
SPECIAL_CHARS = ".\\[{()*+?^$|"
|
||||
REPEAT_CHARS = "*+?{"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue