Use true booleans and PEP8 for argdefaults.

This commit is contained in:
Georg Brandl 2009-09-16 15:54:04 +00:00
parent 3d6575dfc8
commit fe99105835
9 changed files with 21 additions and 21 deletions

View file

@ -67,7 +67,7 @@ def application_uri(environ):
url += quote(environ.get('SCRIPT_NAME') or '/')
return url
def request_uri(environ, include_query=1):
def request_uri(environ, include_query=True):
"""Return the full request URI, optionally including the query string"""
url = application_uri(environ)
from urllib.parse import quote