diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-11 21:40:01 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-11 21:40:01 +0200 |
commit | bd6cdf94d441446c193cbd6022782c40bacc2056 (patch) | |
tree | 79d6aea012bcf7b3c0c3e8d49433c46b9f57aa11 /cherrypy/_cpcompat.py | |
parent | 0e8f3f9ce9f3eda37b7ac096243bd523ba871840 (diff) | |
download | cherrypy-git-bd6cdf94d441446c193cbd6022782c40bacc2056.tar.gz |
PEP8fy codebase: eliminated E302 flake8 error
Diffstat (limited to 'cherrypy/_cpcompat.py')
-rw-r--r-- | cherrypy/_cpcompat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cherrypy/_cpcompat.py b/cherrypy/_cpcompat.py index 62489b2f..07e758f3 100644 --- a/cherrypy/_cpcompat.py +++ b/cherrypy/_cpcompat.py @@ -271,6 +271,7 @@ except ImportError: # In Python 3, pickle is the sped-up C version. import pickle # noqa + def random20(): return binascii.hexlify(os.urandom(20)).decode('ascii') @@ -344,7 +345,7 @@ except ImportError: # html module needed the argument quote=False because in cgi the default # is False. With quote=True the results differ. -def escape_html(s, escape_quote=False): +def escape_html(s, escape_quote=False): # noqa: E302 """Replace special characters "&", "<" and ">" to HTML-safe sequences. When escape_quote=True, escape (') and (") chars. |