[elbe-devel] [PATCH 13/25] pylint: daemons soap: remove unused "example" code in MySession.__call__()

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 10:42:14 CEST 2018


pylint complains:
elbepack/daemons/soap/__init__.py:48: [W0612(unused-variable), MySession.__call__] Unused variable 'f'

This code had been left there, because it shows how the environment
can be accessed. It triggers the pylint warning, and we access the env
in the lower layers.

Remove it.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/daemons/soap/__init__.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/elbepack/daemons/soap/__init__.py b/elbepack/daemons/soap/__init__.py
index 48818cf9..0129e819 100644
--- a/elbepack/daemons/soap/__init__.py
+++ b/elbepack/daemons/soap/__init__.py
@@ -43,11 +43,6 @@ class MySession (SessionMiddleware, SimplePlugin):
         self.pm.stop()
 
     def __call__(self, environ, start_response):
-        # example to hook into wsgi environment
-        if environ['PATH_INFO'].startswith('/FILE:'):
-            f = environ['PATH_INFO'][6:]
-            # return f
-
         return SessionMiddleware.__call__(self, environ, start_response)
 
 
-- 
2.11.0




More information about the elbe-devel mailing list