[Checkins] SVN: zope.tal/branches/pypyzpt/src/zope/tal/ all tests pass both with rpython over c python and with compiled extension

Godefroid Chapelle gotcha at bubblenet.be
Tue Jun 12 06:18:03 EDT 2007


Log message for revision 76636:
  all tests pass both with rpython over c python and with compiled extension

Changed:
  U   zope.tal/branches/pypyzpt/src/zope/tal/_talinterpreter/applevel.py
  U   zope.tal/branches/pypyzpt/src/zope/tal/talinterpreter.py

-=-
Modified: zope.tal/branches/pypyzpt/src/zope/tal/_talinterpreter/applevel.py
===================================================================
--- zope.tal/branches/pypyzpt/src/zope/tal/_talinterpreter/applevel.py	2007-06-12 09:56:46 UTC (rev 76635)
+++ zope.tal/branches/pypyzpt/src/zope/tal/_talinterpreter/applevel.py	2007-06-12 10:18:02 UTC (rev 76636)
@@ -23,7 +23,7 @@
 from zope.tal.translationcontext import TranslationContext
 from zope.tal.alttalgenerator import AltTALGenerator
 
-import _talinterpreter
+import zope.tal 
 
 from zope.tal.talutils import isI18nMessageTypes
 from zope.tal.talutils import isTypesToTranslate
@@ -43,7 +43,7 @@
 _spacejoin = ' '.join
 
 def normalize(value):
-    return _talinterpreter._normalize(value)
+    return zope.tal._talinterpreter._normalize(value)
 
 class MacroStackItem(object):
     def __init__(self, macroName, slots, definingName, extending, entering, i18nContext):

Modified: zope.tal/branches/pypyzpt/src/zope/tal/talinterpreter.py
===================================================================
--- zope.tal/branches/pypyzpt/src/zope/tal/talinterpreter.py	2007-06-12 09:56:46 UTC (rev 76635)
+++ zope.tal/branches/pypyzpt/src/zope/tal/talinterpreter.py	2007-06-12 10:18:02 UTC (rev 76636)
@@ -1,10 +1,10 @@
 try:
     from pypy.interpreter.mixedmodule import testmodule
-    rptalinterpreter =  testmodule('rptalinterpreter', 'zope.tal')
+    _talinterpreter =  testmodule('_talinterpreter', 'zope.tal')
 except ImportError:
-    import rptalinterpreter
+    import _talinterpreter
 
 
-normalize = rptalinterpreter.normalize
-TALInterpreter = rptalinterpreter.TALInterpreter
+normalize = _talinterpreter.normalize
+TALInterpreter = _talinterpreter.TALInterpreter
 



More information about the Checkins mailing list