[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9824 - trunk/gnue-common/src/apps
From: |
johannes |
Subject: |
[gnue] r9824 - trunk/gnue-common/src/apps |
Date: |
Wed, 21 Nov 2007 08:02:18 -0600 (CST) |
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()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9824 - trunk/gnue-common/src/apps,
johannes <=