diff --git a/extra/xmlobject/xmlobject.py b/extra/xmlobject/xmlobject.py index ff6059942..a40c0adb5 100644 --- a/extra/xmlobject/xmlobject.py +++ b/extra/xmlobject/xmlobject.py @@ -25,37 +25,37 @@ Example XML file:: Example usage:: - >>> from xmlobject import XMLFile + >> from xmlobject import XMLFile - >>> x = XMLFile(path="sample.xml) + >> x = XMLFile(path="sample.xml") - >>> print x + >> print x - >>> print x.root + >> print x.root - >>> print x.root._children + >> print x.root._children [, , , , ] - >>> print x.root.person + >> print x.root.person [, ] - >>> print x.root.person[0].name + >> print x.root.person[0].name John Smith - >>> john = x.root.person[0] + >> john = x.root.person[0] - >>> john.height = 184 + >> john.height = 184 - >>> c = john._addNode("crime") + >> c = john._addNode("crime") - >>> c.name = "Grand Theft Auto" + >> c.name = "Grand Theft Auto" - >>> c.date = "4 May, 2005" + >> c.date = "4 May, 2005" - >>> print x.toxml() + >> print x.toxml() @@ -70,7 +70,7 @@ Example usage:: - >>> + >> """ @@ -360,18 +360,18 @@ class XMLNode: foo - >>> somenode + >> somenode - >>> somenode.child + >> somenode.child - >>> somenode.child._text + >> somenode.child._text 'foo' - >>> somenode._toxml() + >> somenode._toxml() u'foo' - >>> somenode.child._text = 'bar' - >>> somenode.child._text + >> somenode.child._text = 'bar' + >> somenode.child._text 'bar' - >>> somenode.child._toxml() + >> somenode.child._toxml() u'bar/child>' """ diff --git a/lib/core/profiling.py b/lib/core/profiling.py index 7733a7b6c..48a348526 100644 --- a/lib/core/profiling.py +++ b/lib/core/profiling.py @@ -25,6 +25,7 @@ import codecs import os import cProfile +from lib.core.common import getUnicode from lib.core.data import conf from lib.core.data import logger from lib.core.data import paths