move implementation independent constants to xmlext

and make the tests work (many of them).
This commit is contained in:
Barış Metin
2005-11-12 15:50:14 +00:00
parent 861e5a7365
commit af213cf8a3
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ _ = __trans.ugettext
def handle_exception(exception, value, tb):
ui = pisi.cli.CLI() # make a temporary UI
show_traceback = False
show_traceback = True
if exception == exceptions.KeyboardInterrupt:
ui.error(_("Keyboard Interrupt: Exiting..."))
sys.exit(1)
+5
View File
@@ -20,3 +20,8 @@ except:
except:
print 'xmlext: cDomlette/piksemel implementation cannot be loaded, falling back to minidom'
from xmlextmdom import *
from xml.dom import XHTML_NAMESPACE, XML_NAMESPACE
XHTML_NS = unicode(XHTML_NAMESPACE)
XML_NS = unicode(XML_NAMESPACE)
-4
View File
@@ -35,10 +35,6 @@ import Ft
from Ft.Xml.Domlette import implementation
from Ft.Xml import ParsePath
from Ft.Xml.Domlette import NonvalidatingReader
from xml.dom import XHTML_NAMESPACE, XML_NAMESPACE
XHTML_NS = unicode(XHTML_NAMESPACE)
XML_NS = unicode(XML_NAMESPACE)
import pisi