Author: johannes
Date: 2007-11-21 08:02:18 -0600 (Wed, 21 Nov 2007)
New Revision: 9824
Modified:
trunk/gnue-common/src/apps/GImportLogger.py
Log:
Reindented
Modified: trunk/gnue-common/src/apps/GImportLogger.py
===================================================================
--- trunk/gnue-common/src/apps/GImportLogger.py 2007-11-21 14:00:58 UTC (rev 9823)
+++ trunk/gnue-common/src/apps/GImportLogger.py 2007-11-21 14:02:18 UTC (rev 9824)
@@ -23,24 +23,24 @@
#
"""
Importing this module causes all modules imported after this
-to be printed to stdout
+to be printed to stdout
"""
import os, ihooks, sys
_import_indent = 0
class MyHooks(ihooks.Hooks):
- pass
+ pass
class GImportLogger(ihooks.ModuleLoader):
- def load_module(self, name, stuff):
- global _import_indent
- print "." * _import_indent + "Importing %s..." % name
- _import_indent += 1
+ def load_module(self, name, stuff):
+ global _import_indent
+ print "." * _import_indent + "Importing %s..." % name
+ _import_indent += 1
- module = ihooks.ModuleLoader.load_module(self, name, stuff)
+ module = ihooks.ModuleLoader.load_module(self, name, stuff)
- _import_indent -= 1
- return module
+ _import_indent -= 1
+ return module
ihooks.ModuleImporter(GImportLogger(MyHooks())).install()
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.