[Mpuls-commits] r2237 - in wasko/branches/2.0: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 29 17:35:20 CEST 2010


Author: bh
Date: 2010-03-29 17:35:19 +0200 (Mon, 29 Mar 2010)
New Revision: 2237

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/timelog.py
Log:
* mpulsweb/lib/timelog.py: Fix formatting.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-29 15:32:31 UTC (rev 2236)
+++ wasko/branches/2.0/ChangeLog	2010-03-29 15:35:19 UTC (rev 2237)
@@ -1,5 +1,9 @@
 2010-03-29  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/timelog.py: Fix formatting.
+
+2010-03-29  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/validators.py: Remove unused imports.
 
 2010-03-29  Bernhard Herzog  <bh at intevation.de>

Modified: wasko/branches/2.0/mpulsweb/lib/timelog.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/timelog.py	2010-03-29 15:32:31 UTC (rev 2236)
+++ wasko/branches/2.0/mpulsweb/lib/timelog.py	2010-03-29 15:35:19 UTC (rev 2237)
@@ -1,27 +1,27 @@
 # -*- coding: utf-8 -*-
 #
 # Copyright 2007, 2008 Intevation GmbH, Germany, <info at intevation.de>
-# 
-# This file is part of mpuls WASKA (CoMPUter-based case fiLeS - 
+#
+# This file is part of mpuls WASKA (CoMPUter-based case fiLeS -
 # Web-Anwendungs-Server fuer Kompetenzagenturen).
-# 
+#
 # mpuls WASKA is free software: you can redistribute it and/or modify it under
 # the terms of the GNU Affero General Public License as published by the
 # Free Software Foundation, either version 3 of the License, or (at your
 # option) any later version.
-# 
+#
 # mpuls WASKA is distributed in the hope that it will be useful, but WITHOUT
 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
 # License for more details.
-# 
+#
 # You should have received a copy of the GNU Affero General Public
 # License along with mpuls WASKA. If not, see <http://www.gnu.org/licenses/>.
-# 
-# mpuls WASKA has been developed on behalf of the 
+#
+# mpuls WASKA has been developed on behalf of the
 # Projekttraeger im Deutschen Zentrum fuer Luft- und Raumfahrt e.V. (PT-DLR)
 # within the programme Kompetenzagenturen (Durchfuehrungsphase) funded by
-# the Bundesministerium fuer Familie, Senioren, Frauen und Jugend and 
+# the Bundesministerium fuer Familie, Senioren, Frauen und Jugend and
 # European Social Fund resources.
 # Authors:
 # Sascha L. Teichmann <teichmann at intevation.de>
@@ -43,10 +43,11 @@
 __LOGGER = None
 
 def setupTimeLogging(host='localhost', port=handlers.DEFAULT_TCP_LOGGING_PORT):
-    if host: host = host.strip()
     if host:
+        host = host.strip()
+    if host:
         print >> sys.stderr, "time logging: %s port %d" % (host, port)
-        global __LOGGER 
+        global __LOGGER
         __LOGGER = logging.getLogger('waska.timelog')
         socketHandler = handlers.SocketHandler(host, port)
         __LOGGER.addHandler(socketHandler)
@@ -69,6 +70,6 @@
             __LOGGER.info("%f" % avg)
     finally:
         __TIME_LOCK.release()
-        
 
+
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list