Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib/python2.7/site-packages/paste/util
opt
/
alt
/
python27
/
lib
/
python2.7
/
site-packages
/
paste
/
util
/
📁
..
📄
PySourceColor.py
(83.85 KB)
📄
PySourceColor.pyc
(54.31 KB)
📄
PySourceColor.pyo
(54.31 KB)
📄
UserDict24.py
(5.39 KB)
📄
UserDict24.pyc
(10.27 KB)
📄
UserDict24.pyo
(10.27 KB)
📄
__init__.py
(86 B)
📄
__init__.pyc
(257 B)
📄
__init__.pyo
(257 B)
📄
classinit.py
(1.81 KB)
📄
classinit.pyc
(1.89 KB)
📄
classinit.pyo
(1.89 KB)
📄
classinstance.py
(1.34 KB)
📄
classinstance.pyc
(2.27 KB)
📄
classinstance.pyo
(2.11 KB)
📄
converters.py
(863 B)
📄
converters.pyc
(1.15 KB)
📄
converters.pyo
(1.15 KB)
📄
dateinterval.py
(2.36 KB)
📄
dateinterval.pyc
(3.08 KB)
📄
dateinterval.pyo
(3.08 KB)
📄
datetimeutil.py
(10.91 KB)
📄
datetimeutil.pyc
(10.01 KB)
📄
datetimeutil.pyo
(10.01 KB)
📄
doctest24.py
(97.09 KB)
📄
doctest24.pyc
(82.42 KB)
📄
doctest24.pyo
(82.14 KB)
📄
filemixin.py
(1.4 KB)
📄
filemixin.pyc
(2.01 KB)
📄
filemixin.pyo
(2.01 KB)
📄
finddata.py
(3.75 KB)
📄
finddata.pyc
(2.89 KB)
📄
finddata.pyo
(2.89 KB)
📄
findpackage.py
(786 B)
📄
findpackage.pyc
(914 B)
📄
findpackage.pyo
(914 B)
📄
import_string.py
(3.04 KB)
📄
import_string.pyc
(3.27 KB)
📄
import_string.pyo
(3.27 KB)
📄
intset.py
(18.68 KB)
📄
intset.pyc
(19.07 KB)
📄
intset.pyo
(19.07 KB)
📄
ip4.py
(9.05 KB)
📄
ip4.pyc
(9.02 KB)
📄
ip4.pyo
(9.02 KB)
📄
killthread.py
(1.2 KB)
📄
killthread.pyc
(1.4 KB)
📄
killthread.pyo
(1.4 KB)
📁
looper
📄
looper.py.tmpta
(3.88 KB)
📄
mimeparse.py
(6.44 KB)
📄
mimeparse.pyc
(6.99 KB)
📄
mimeparse.pyo
(6.99 KB)
📄
multidict.py
(11.14 KB)
📄
multidict.pyc
(16.33 KB)
📄
multidict.pyo
(16.33 KB)
📄
quoting.py
(2.42 KB)
📄
quoting.pyc
(2.94 KB)
📄
quoting.pyo
(2.94 KB)
📄
scgiserver.py
(5.5 KB)
📄
scgiserver.pyc
(5.98 KB)
📄
scgiserver.pyo
(5.87 KB)
📄
string24.py
(16.35 KB)
📄
string24.pyc
(18.25 KB)
📄
string24.pyo
(18.25 KB)
📁
template
📄
template.py.tmpta
(23.73 KB)
📄
threadedprint.py
(8.02 KB)
📄
threadedprint.pyc
(10.15 KB)
📄
threadedprint.pyo
(8.84 KB)
📄
threadinglocal.py
(1.45 KB)
📄
threadinglocal.pyc
(2.01 KB)
📄
threadinglocal.pyo
(2.01 KB)
Editing: finddata.py
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Note: you may want to copy this into your setup.py file verbatim, as # you can't import this from another package, when you don't know if # that package is installed yet. import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path # Provided as an attribute, so you can append to these instead # of replicating them: standard_exclude = ('*.py', '*.pyc', '*$py.class', '*~', '.*', '*.bak') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') def find_package_data( where='.', package='', exclude=standard_exclude, exclude_directories=standard_exclude_directories, only_in_packages=True, show_ignored=False): """ Return a dictionary suitable for use in ``package_data`` in a distutils ``setup.py`` file. The dictionary looks like:: {'package': [files]} Where ``files`` is a list of all the files in that package that don't match anything in ``exclude``. If ``only_in_packages`` is true, then top-level directories that are not packages won't be included (but directories under packages will). Directories matching any pattern in ``exclude_directories`` will be ignored; by default directories with leading ``.``, ``CVS``, and ``_darcs`` will be ignored. If ``show_ignored`` is true, then all the files that aren't included in package data are shown on stderr (for debugging purposes). Note patterns use wildcards, or can be exact paths (including leading ``./``), and all searching is case-insensitive. """ out = {} stack = [(convert_path(where), '', package, only_in_packages)] while stack: where, prefix, package, only_in_packages = stack.pop(0) for name in os.listdir(where): fn = os.path.join(where, name) if os.path.isdir(fn): bad_name = False for pattern in exclude_directories: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print >> sys.stderr, ( "Directory %s ignored by pattern %s" % (fn, pattern)) break if bad_name: continue if (os.path.isfile(os.path.join(fn, '__init__.py')) and not prefix): if not package: new_package = name else: new_package = package + '.' + name stack.append((fn, '', new_package, False)) else: stack.append((fn, prefix + name + '/', package, only_in_packages)) elif package or not only_in_packages: # is a file bad_name = False for pattern in exclude: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print >> sys.stderr, ( "File %s ignored by pattern %s" % (fn, pattern)) break if bad_name: continue out.setdefault(package, []).append(prefix+name) return out if __name__ == '__main__': import pprint pprint.pprint( find_package_data(show_ignored=True))
Upload File
Create Folder