[Lxml-checkins] r44675 - lxml/branch/html/src/lxml/html

ianb at codespeak.net ianb at codespeak.net
Mon Jul 2 19:20:57 CEST 2007


Author: ianb
Date: Mon Jul  2 19:20:56 2007
New Revision: 44675

Modified:
   lxml/branch/html/src/lxml/html/css.py
Log:
Change up the namespace function a bit

Modified: lxml/branch/html/src/lxml/html/css.py
==============================================================================
--- lxml/branch/html/src/lxml/html/css.py	(original)
+++ lxml/branch/html/src/lxml/html/css.py	Mon Jul  2 19:20:56 2007
@@ -155,7 +155,9 @@
 def _make_lower_case(context, s):
     return s.lower()
 
-etree.FunctionNamespace("css")['lower-case'] = _make_lower_case
+ns = etree.FunctionNamespace('http://codespeak.net/lxml/css/')
+ns.prefix = 'css'
+ns['lower-case'] = _make_lower_case
 
 class Pseudo(object):
     """


More information about the lxml-checkins mailing list