diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-10-14 22:37:18 +0000 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-10-14 22:37:18 +0000 |
| commit | 32e7aa6ab97ccb74eab84ed3f97944ecde3a0663 (patch) | |
| tree | 154514aa6447e66bbc149541be83de23f281efe8 | |
| parent | 07d539d08bb54628d20978e97eb6e0ba263ac581 (diff) | |
| download | cpython-git-32e7aa6ab97ccb74eab84ed3f97944ecde3a0663.tar.gz | |
remove set compat cruft
| -rw-r--r-- | Lib/sre_compile.py | 6 | ||||
| -rw-r--r-- | Lib/sre_parse.py | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 65d2ccf016..2a0c745a5d 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -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]) diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index 47810193d1..182d1eb44f 100644 --- a/Lib/sre_parse.py +++ b/Lib/sre_parse.py @@ -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 = "*+?{" |
