changeset 2420:d268d5467cfe

standalone server: fix AttributeError when not using cProfileProfile
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 19 Jul 2007 12:30:58 +0200
parents 123974b5c8b5
children 059054049961 8ce2afa469a7
files MoinMoin/server/server_standalone.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/server/server_standalone.py	Wed Jul 18 09:15:28 2007 +0200
+++ b/MoinMoin/server/server_standalone.py	Thu Jul 19 12:30:58 2007 +0200
@@ -77,7 +77,7 @@
         if config.hotshotProfile:
             config.hotshotProfile.close()
 
-        if config.cProfile and config.cProfileProfile:
+        if config.cProfileProfile and config.cProfile:
             config.cProfile.dump_stats(config.cProfileProfile)
 
         # Set abort flag, then make request to wake the server
@@ -562,6 +562,8 @@
     # Development options
     memoryProfile = None
     hotshotProfile = None
+    cProfile = None # internal use only
+    cProfileProfile = None
     pycallgraph_output = None
 
 def cProfileDecorator(func, profile):