[Checkins] SVN: zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py Minor code style cleanup, remove commented out code (that's what SVN is for.)

Christian Theune ct at gocept.com
Sat Apr 24 04:04:01 EDT 2010


Log message for revision 111330:
  Minor code style cleanup, remove commented out code (that's what SVN is for.)
  

Changed:
  U   zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py

-=-
Modified: zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py
===================================================================
--- zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py	2010-04-23 23:38:47 UTC (rev 111329)
+++ zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py	2010-04-24 08:04:00 UTC (rev 111330)
@@ -85,19 +85,18 @@
 
         # Call the application to handle the request and write a response
         try:
-            app =  super(PMDBWSGIPublisherApplication, self)
+            app = super(PMDBWSGIPublisherApplication, self)
             return app.__call__(environ, start_response)
         except Exception, error:
-            import sys, pdb
+            import sys
+            import pdb
             print "%s:" % sys.exc_info()[0]
             print sys.exc_info()[1]
-            #import zope.security.management
-            #zope.security.management.restoreInteraction()
             try:
                 pdb.post_mortem(sys.exc_info()[2])
                 raise
             finally:
-                pass #zope.security.management.endInteraction()
+                pass
 
 
 def config(configfile, schemafile=None, features=()):
@@ -156,6 +155,7 @@
 
     return db
 
+
 def getWSGIApplication(configfile, schemafile=None, features=(),
                        requestFactory=HTTPPublicationRequestFactory,
                        handle_errors=True):



More information about the checkins mailing list