summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-04-19 03:03:25 (GMT)
committerSteven Knight <knight@baldmt.com>2010-04-19 03:03:25 (GMT)
commita0eb78c8117dccefacc393f3e10d34f8c10749c6 (patch)
treef231eacab2d8ae9983dcfcd1d05750f9846d41e8 /src/engine/SCons
parentf1049d9db2e71842802f89b708ba825df304e774 (diff)
downloadSCons-a0eb78c8117dccefacc393f3e10d34f8c10749c6.zip
SCons-a0eb78c8117dccefacc393f3e10d34f8c10749c6.tar.gz
SCons-a0eb78c8117dccefacc393f3e10d34f8c10749c6.tar.bz2
Remove compat fnmatch.filter() support.
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/compat/__init__.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/engine/SCons/compat/__init__.py b/src/engine/SCons/compat/__init__.py
index 62c6467..1318bf5 100644
--- a/src/engine/SCons/compat/__init__.py
+++ b/src/engine/SCons/compat/__init__.py
@@ -152,34 +152,6 @@ except AttributeError:
del whichdb
-import fnmatch
-try:
- fnmatch.filter
-except AttributeError:
- # Pre-2.2 Python has no fnmatch.filter() function.
- def filter(names, pat):
- """Return the subset of the list NAMES that match PAT"""
- import os,posixpath
- result=[]
- pat = os.path.normcase(pat)
- if pat not in fnmatch._cache:
- import re
- res = fnmatch.translate(pat)
- fnmatch._cache[pat] = re.compile(res)
- match = fnmatch._cache[pat].match
- if os.path is posixpath:
- # normcase on posix is NOP. Optimize it away from the loop.
- for name in names:
- if match(name):
- result.append(name)
- else:
- for name in names:
- if match(os.path.normcase(name)):
- result.append(name)
- return result
- fnmatch.filter = filter
- del filter
-
try:
import io
except ImportError: