diff options
| author | Jay <jay@jays-mbp.attlocal.net> | 2019-10-16 23:06:23 -0400 |
|---|---|---|
| committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2019-11-03 02:09:35 +0100 |
| commit | 2eb57af2a8a74775ae3fe1723f6a9390f5013192 (patch) | |
| tree | 0d6d746420ffda05fbef1eb5c5e032d671112b7f /cherrypy/lib | |
| parent | 535605c42c25b62260049285e76825d7ea8f9108 (diff) | |
| download | cherrypy-git-2eb57af2a8a74775ae3fe1723f6a9390f5013192.tar.gz | |
Fix a few minor documentation warnings
Sphinx warnings fixed:
* docs/advanced.rst:571: WARNING: Inline interpreted text or phrase reference start-string without end-string.
* docs/advanced.rst:573: WARNING: Definition list ends without a blank line; unexpected unindent.
* docs/basics.rst:4: WARNING: Duplicate explicit target name: "memcached".
Diffstat (limited to 'cherrypy/lib')
| -rw-r--r-- | cherrypy/lib/cptools.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/cherrypy/lib/cptools.py b/cherrypy/lib/cptools.py index 82f897a0..7645ea08 100644 --- a/cherrypy/lib/cptools.py +++ b/cherrypy/lib/cptools.py @@ -404,23 +404,22 @@ Message: %(error_msg)s def session_auth(**kwargs): + """Session authentication hook. + + Any attribute of the SessionAuth class may be overridden + via a keyword arg to this function: + + """ + '\n'.join( + '{!s}: {!s}'.format(k, type(getattr(SessionAuth, k)).__name__) + for k in dir(SessionAuth) + if not k.startswith('__') + ) sa = SessionAuth() for k, v in kwargs.items(): setattr(sa, k, v) return sa.run() -session_auth.__doc__ = ( - """Session authentication hook. - - Any attribute of the SessionAuth class may be overridden via a keyword arg - to this function: - - """ + '\n'.join(['%s: %s' % (k, type(getattr(SessionAuth, k)).__name__) - for k in dir(SessionAuth) if not k.startswith('__')]) -) - - def log_traceback(severity=logging.ERROR, debug=False): """Write the last error's traceback to the cherrypy error log.""" cherrypy.log('', 'HTTP', severity=severity, traceback=True) |
