def _if_filename_register_autoreload(ob):
    """Register for autoreload if ob is a string (presumed filename)."""
    is_filename = isinstance(ob, text_or_bytes)
    is_filename and cherrypy.engine.autoreload.files.add(ob)
Register for autoreload if ob is a string (presumed filename).
cherrypy/_cpconfig.py