Commits

Lynn Rees committed 16d5cf5

[svn]

Comments (0)

Files changed (1)

branches/0.5/trunk/webstring/xmlt.py

     
     def __new__(cls, *args, **kw):
         engine = kw.get('engine', 'etree')
-        if engine == 'lxml':
+        if engine == 'etree':
+            return EtreeTemplate(*args, **kw)
+        elif engine == 'lxml':
             return LxmlTemplate(*args, **kw)
-        elif engine == 'etree':
-            return EtreeTemplate(*args, **kw)
 
 
 class WSGITemplate(WSGIBase):