From: Benjamin Peterson Date: Tue, 14 Oct 2008 22:37:18 +0000 (+0000) Subject: remove set compat cruft X-Git-Tag: v2.7a1~2740 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32e7aa6ab97ccb74eab84ed3f97944ecde3a0663;p=thirdparty%2FPython%2Fcpython.git remove set compat cruft --- diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 65d2ccf016f0..2a0c745a5d3c 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 47810193d16d..182d1eb44f8b 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 = "*+?{"