Commits

Thomas Lotze committed a2e6b66

better use of Python

  • Participants
  • Parent commits 3fefabc
  • Branches wsgi-only

Comments (0)

Files changed (1)

File ophelia/wsgi.py

     """
 
     def __call__(self, env, start_response):
-        path = env["PATH_INFO"]
-        if path.startswith('/'):
-            path = path[1:]
-
+        path = env["PATH_INFO"].lstrip('/')
         context = env.get("ophelia.context", {})
 
         request = Request(