changeset 1949:cfdb0ffc2910

move logging_fix import to MoinMoin.config, fix encoding/docstring
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 06 Apr 2007 13:08:19 +0200
parents c452430f7e8c
children bbfc3144a567
files MoinMoin/config/__init__.py MoinMoin/server/__init__.py MoinMoin/support/logging_fix.py
diffstat 3 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/__init__.py	Fri Apr 06 12:53:26 2007 +0200
+++ b/MoinMoin/config/__init__.py	Fri Apr 06 13:08:19 2007 +0200
@@ -8,6 +8,9 @@
 import re
 from MoinMoin import version
 
+# this fix is done here because everyone imports config rather early
+from MoinMoin.support import logging_fix
+
 # unicode: set the char types (upper, lower, digits, spaces)
 from MoinMoin.util.chartypes import *
 
--- a/MoinMoin/server/__init__.py	Fri Apr 06 12:53:26 2007 +0200
+++ b/MoinMoin/server/__init__.py	Fri Apr 06 13:08:19 2007 +0200
@@ -12,7 +12,6 @@
 import logging
 
 from MoinMoin import config
-from MoinMoin.support import logging_fix
 
 def switchUID(uid, gid):
     """ Switch identity to safe user and group
--- a/MoinMoin/support/logging_fix.py	Fri Apr 06 12:53:26 2007 +0200
+++ b/MoinMoin/support/logging_fix.py	Fri Apr 06 13:08:19 2007 +0200
@@ -1,6 +1,9 @@
-# -*- coding: utf-8 -*-
+# -*- coding: iso-8859-1 -*-
 """
-Python 2.3's logging module has no .log, this provides it.
+    Python 2.3's logging module has no .log, this provides it.
+
+    @copyright: 2007 MoinMoin:JohannesBerg 
+    @license: GNU GPL, see COPYING for details.
 """
 
 import logging