/usr/share/pyshared/cherrypy/lib/filter/__init__.py is in python-cherrypy 2.3.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import warnings
warnings.warn("cherrypy.lib.filter has been superseded by cherrypy.filters and will be removed in CP 2.3", DeprecationWarning, stacklevel = 2)
from cherrypy.filters import *
import sys
builtin_filters = ("basefilter", "baseurlfilter", "cachefilter",
"decodingfilter", "encodingfilter", "gzipfilter",
"logdebuginfofilter", "nsgmlsfilter",
"responseheadersfilter", "sessionauthenticatefilter",
"sessionfilter", "staticfilter", "tidyfilter",
"virtualhostfilter", "xmlrpcfilter")
for name in builtin_filters:
newlocation = "cherrypy.filters." + name
m = __import__(newlocation, globals(), locals(), [''])
sys.modules["cherrypy.lib.filter." + name] = m
globals()[name] = m
|