move implementation independent constants to xmlext
and make the tests work (many of them).
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user