[Checkins] SVN: z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nextract.py - small optimization

Yvo Schubbe y.2009 at wcm-solutions.de
Fri Jul 17 04:11:51 EDT 2009


Log message for revision 101956:
  - small optimization

Changed:
  U   z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nextract.py

-=-
Modified: z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nextract.py
===================================================================
--- z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nextract.py	2009-07-17 07:57:22 UTC (rev 101955)
+++ z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nextract.py	2009-07-17 08:11:51 UTC (rev 101956)
@@ -125,7 +125,7 @@
         elif opt in ('-e', '--exclude-default-domain'):
             include_default_domain = False
         elif opt in ('-m', ):
-            makers.append(arg)
+            makers.append(resolve(arg))
         elif opt in ('-o', ):
             output_dir = arg
         elif opt in ('-x', ):
@@ -182,8 +182,7 @@
             maker.add(tal_strings(path, domain, include_default_domain,
                                   exclude=exclude_dirs), basePath)
         for m in makers:
-            poMaker = resolve(m)
-            maker.add(poMaker(path, basePath, exclude_dirs), basePath)
+            maker.add(m(path, basePath, exclude_dirs), basePath)
 
     maker.write()
     print "output: %r\n" % output_file



More information about the Checkins mailing list