From 821ed2fd7fa725c7bd0353fd3f5a7e843198682d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 15 Oct 2013 23:32:39 +0200 Subject: Quotestyle --- fixers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fixers.py') diff --git a/fixers.py b/fixers.py index 822f6b8..118c225 100644 --- a/fixers.py +++ b/fixers.py @@ -8,11 +8,11 @@ class ScriptNameFixer(object): self.app = app def __call__ (self, environ, start_response): - uri = unquote(environ["REQUEST_URI"]).split('?', 1)[0] - path = environ["PATH_INFO"] + uri = unquote(environ['REQUEST_URI']).split('?', 1)[0] + path = environ['PATH_INFO'] if uri.endswith(path): - environ["SCRIPT_NAME"] = uri[:-len(path)] + environ['SCRIPT_NAME'] = uri[:-len(path)] return self.app(environ, start_response) -- cgit v1.2.3