# Path: cherrypy/_cpcompat.py
#     def ntob(n, encoding='ISO-8859-1'):
#     def ntou(n, encoding='ISO-8859-1'):
#     def tonative(n, encoding='ISO-8859-1'):
#     def ntob(n, encoding='ISO-8859-1'):
#     def ntou(n, encoding='ISO-8859-1'):
#     def tonative(n, encoding='ISO-8859-1'):
# def assert_native(n):
# def base64_decode(n, encoding='ISO-8859-1'):
#     def sorted(i):
#     def reversed(x):
#     def get_daemon(t):
#     def set_daemon(t, val):
#     def get_daemon(t):
#     def set_daemon(t, val):
#     def HTTPDate(timeval=None):
#     def unquote_qs(atom, encoding, errors='strict'):
#     def unquote_qs(atom, encoding, errors='strict'):
#         def json_decode(s):
#         def _json_encode(s):
#         def json_encode(value):
#     def random20():
#     def random20():
#     def next(i):
#     def __get_daemon(self):
#     def __set_daemon(self, daemon):
# class SetDaemonProperty:
# 
# Path: cherrypy/lib/reprconf.py
# def as_dict(config):
#     def __call__(self, config):
#     def __repr__(self):
#     def __copy__(self):
#     def __init__(self, file=None, **kwargs):
#     def reset(self):
#     def update(self, config):
#     def _apply(self, config):
#     def __setitem__(self, k, v):
#     def optionxform(self, optionstr):
#     def read(self, filenames):
#     def as_dict(self, raw=False, vars=None):
#     def dict_from_file(self, file):
#     def build(self, o):
#     def astnode(self, s):
#     def build_Subscript(self, o):
#     def build_CallFunc(self, o):
#     def build_List(self, o):
#     def build_Const(self, o):
#     def build_Dict(self, o):
#     def build_Tuple(self, o):
#     def build_Name(self, o):
#     def build_Add(self, o):
#     def build_Mul(self, o):
#     def build_Getattr(self, o):
#     def build_NoneType(self, o):
#     def build_UnarySub(self, o):
#     def build_UnaryAdd(self, o):
#     def build(self, o):
#     def astnode(self, s):
#     def build_Subscript(self, o):
#     def build_Index(self, o):
#     def build_Call(self, o):
#     def build_List(self, o):
#     def build_Str(self, o):
#     def build_Num(self, o):
#     def build_Dict(self, o):
#     def build_Tuple(self, o):
#     def build_Name(self, o):
#     def build_UnaryOp(self, o):
#     def build_BinOp(self, o):
#     def build_Add(self, o):
#     def build_Mult(self, o):
#     def build_USub(self, o):
#     def build_Attribute(self, o):
#     def build_NoneType(self, o):
# def unrepr(s):
# def modules(modulePath):
# def attributes(full_attribute_name):
# class NamespaceSet(dict):
# class Config(dict):
# class Parser(ConfigParser):
# class _Builder2:
# class _Builder3:


import cherrypy
from cherrypy._cpcompat import set, basestring
from cherrypy.lib import reprconf
            from cherrypy import _cpserver
Config.namespaces["server"] = _server_namespace_handler

def _engine_namespace_handler(k, v):
    """Backward compatibility handler for the "engine" namespace."""
    engine = cherrypy.engine

    deprecated = {'autoreload_on': 'autoreload.on', 'autoreload_frequency': 'autoreload.frequency',
        'autoreload_match': 'autoreload.match', 'reload_files': 'autoreload.files',
        'deadlock_poll_freq': 'timeout_monitor.frequency'}

    if k in deprecated:
        engine.log('WARNING: Use of engine.%s is deprecated and will be removed in '
            'a future version. Use engine.%s instead.' % (k, deprecated[k]))

    if k == 'autoreload_on':
        if v:
            engine.autoreload.subscribe()
        else:
            engine.autoreload.unsubscribe()
    elif k == 'autoreload_frequency':
        engine.autoreload.frequency = v
    elif k == 'autoreload_match':
        engine.autoreload.match = v
    elif k == 'reload_files':
        engine.autoreload.files = set(v)
    elif k == 'deadlock_poll_freq':
        engine.timeout_monitor.frequency = v
    elif k == 'SIGHUP':
        engine.listeners['SIGHUP'] = set([v])
    elif k == 'SIGTERM':

# Path: cherrypy/_cpcompat.py
#     def ntob(n, encoding='ISO-8859-1'):
#     def ntou(n, encoding='ISO-8859-1'):
#     def tonative(n, encoding='ISO-8859-1'):
#     def ntob(n, encoding='ISO-8859-1'):
#     def ntou(n, encoding='ISO-8859-1'):
#     def tonative(n, encoding='ISO-8859-1'):
# def assert_native(n):
# def base64_decode(n, encoding='ISO-8859-1'):
#     def sorted(i):
#     def reversed(x):
#     def get_daemon(t):
#     def set_daemon(t, val):
#     def get_daemon(t):
#     def set_daemon(t, val):
#     def HTTPDate(timeval=None):
#     def unquote_qs(atom, encoding, errors='strict'):
#     def unquote_qs(atom, encoding, errors='strict'):
#         def json_decode(s):
#         def _json_encode(s):
#         def json_encode(value):
#     def random20():
#     def random20():
#     def next(i):
#     def __get_daemon(self):
#     def __set_daemon(self, daemon):
# class SetDaemonProperty:
# 
# Path: cherrypy/lib/reprconf.py
# def as_dict(config):
#     def __call__(self, config):
#     def __repr__(self):
#     def __copy__(self):
#     def __init__(self, file=None, **kwargs):
#     def reset(self):
#     def update(self, config):
#     def _apply(self, config):
#     def __setitem__(self, k, v):
#     def optionxform(self, optionstr):
#     def read(self, filenames):
#     def as_dict(self, raw=False, vars=None):
#     def dict_from_file(self, file):
#     def build(self, o):
#     def astnode(self, s):
#     def build_Subscript(self, o):
#     def build_CallFunc(self, o):
#     def build_List(self, o):
#     def build_Const(self, o):
#     def build_Dict(self, o):
#     def build_Tuple(self, o):
#     def build_Name(self, o):
#     def build_Add(self, o):
#     def build_Mul(self, o):
#     def build_Getattr(self, o):
#     def build_NoneType(self, o):
#     def build_UnarySub(self, o):
#     def build_UnaryAdd(self, o):
#     def build(self, o):
#     def astnode(self, s):
#     def build_Subscript(self, o):
#     def build_Index(self, o):
#     def build_Call(self, o):
#     def build_List(self, o):
#     def build_Str(self, o):
#     def build_Num(self, o):
#     def build_Dict(self, o):
#     def build_Tuple(self, o):
#     def build_Name(self, o):
#     def build_UnaryOp(self, o):
#     def build_BinOp(self, o):
#     def build_Add(self, o):
#     def build_Mult(self, o):
#     def build_USub(self, o):
#     def build_Attribute(self, o):
#     def build_NoneType(self, o):
# def unrepr(s):
# def modules(modulePath):
# def attributes(full_attribute_name):
# class NamespaceSet(dict):
# class Config(dict):
# class Parser(ConfigParser):
# class _Builder2:
# class _Builder3:


# Path: cherrypy/_cpconfig.py
import cherrypy
from cherrypy._cpcompat import set, basestring
from cherrypy.lib import reprconf
            from cherrypy import _cpserver

Config.namespaces["server"] = _server_namespace_handler

def _engine_namespace_handler(k, v):
    """Backward compatibility handler for the "engine" namespace."""
    engine = cherrypy.engine

    deprecated = {'autoreload_on': 'autoreload.on', 'autoreload_frequency': 'autoreload.frequency',
        'autoreload_match': 'autoreload.match', 'reload_files': 'autoreload.files',
        'deadlock_poll_freq': 'timeout_monitor.frequency'}

    if k in deprecated:
        engine.log('WARNING: Use of engine.%s is deprecated and will be removed in '
            'a future version. Use engine.%s instead.' % (k, deprecated[k]))

    if k == 'autoreload_on':
        if v:
            engine.autoreload.subscribe()
        else:
            engine.autoreload.unsubscribe()
    elif k == 'autoreload_frequency':
        engine.autoreload.frequency = v
    elif k == 'autoreload_match':
        engine.autoreload.match = v
    elif k == 'reload_files':
        engine.autoreload.files = set(v)
    elif k == 'deadlock_poll_freq':
        engine.timeout_monitor.frequency = v
    elif k == 'SIGHUP':
        engine.listeners['SIGHUP'] = set([v])
    elif k == 'SIGTERM':

        engine.listeners['SIGTERM'] = set([v])