some pep8 changes (fixed spacing at end)

This commit is contained in:
mdipierro
2012-10-19 10:37:07 -05:00
parent 3a66f5e330
commit 71ec15190b
136 changed files with 12 additions and 653 deletions
+6 -8
View File
@@ -9,7 +9,11 @@ License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This file is based, although a rewrite, on MIT-licensed code from the Bottle web framework.
"""
import os, sys, optparse, urllib
import os
import sys
import optparse
import urllib
path = os.path.dirname(os.path.abspath(__file__))
os.chdir(path)
sys.path = [path]+[p for p in sys.path if not p==path]
@@ -217,7 +221,7 @@ def mongrel2_handler(application,conn,debug=False):
environ['QUERY_STRING'] = environ['URI'].split('?')[1]
else:
environ['QUERY_STRING'] = ''
if environ.has_key('Content-Length'):
if 'Content-Length' in environ:
environ['CONTENT_LENGTH'] = environ['Content-Length'] # necessary for POST to work with Django
environ['wsgi.input'] = req.body
@@ -305,9 +309,3 @@ def main():
if __name__=='__main__':
main()