[Checkins] SVN: Sandbox/ulif/z3c-testsetup/trunk/src/z3c/testsetup/util.py Shorten pkg resolve.

Uli Fouquet uli at gnufix.de
Sat Feb 2 09:49:12 EST 2008


Log message for revision 83421:
  Shorten pkg resolve.

Changed:
  U   Sandbox/ulif/z3c-testsetup/trunk/src/z3c/testsetup/util.py

-=-
Modified: Sandbox/ulif/z3c-testsetup/trunk/src/z3c/testsetup/util.py
===================================================================
--- Sandbox/ulif/z3c-testsetup/trunk/src/z3c/testsetup/util.py	2008-02-02 14:02:12 UTC (rev 83420)
+++ Sandbox/ulif/z3c-testsetup/trunk/src/z3c/testsetup/util.py	2008-02-02 14:49:12 UTC (rev 83421)
@@ -13,7 +13,7 @@
 ##############################################################################
 """Helper functions for testsetup.
 """
-from martian.scan import module_info_from_dotted_name
+from martian.scan import resolve
 
 def get_package(pkg_or_dotted_name):
     """Get a package denoted by the given argument.
@@ -26,6 +26,5 @@
     """
     pkg = pkg_or_dotted_name
     if isinstance(pkg, basestring):
-        info = module_info_from_dotted_name(pkg)
-        pkg = info.getModule()
+        pkg = resolve(pkg)
     return pkg



More information about the Checkins mailing list