Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(15)  |  Derive(0)  |  Import(1)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/tool/tb_server/render.py   plexnet(Download)
            lines = traceback.format_exception(*sys.exc_info())
            inner =  html.pre(
                py.xml.escape(''.join(
                ['Internal Rendering Error, traceback follows\n'] + lines)))
 
            i += 1
 
        lines.append(html.pre(py.xml.escape(self.excinfo.exconly()))) 
        return lines
 
                if k[0] == '_':
                    continue
                lines.append(py.xml.escape('%s=%s\n'%(k, repr(v)[:1000])))
        return lines
 
                html.td(html.a("%03d" % i, name=str(i))),
                html.td(
                    html.pre(py.xml.escape(line)[:-1],
                             **kws),
                ), 

src/s/y/Sypy-HEAD/tool/tb_server/render.py   Sypy(Download)
            lines = traceback.format_exception(*sys.exc_info())
            inner =  html.pre(
                py.xml.escape(''.join(
                ['Internal Rendering Error, traceback follows\n'] + lines)))
 
            i += 1
 
        lines.append(html.pre(py.xml.escape(self.excinfo.exconly()))) 
        return lines
 
                if k[0] == '_':
                    continue
                lines.append(py.xml.escape('%s=%s\n'%(k, repr(v)[:1000])))
        return lines
 
                html.td(html.a("%03d" % i, name=str(i))),
                html.td(
                    html.pre(py.xml.escape(line)[:-1],
                             **kws),
                ), 

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/xmlobj/visit.py   plexnet(Download)
# 
# a generic conversion serializer 
#
 
from py.xml import escape 
            if name.endswith('_'): 
                name = name[:-1]
            return u' %s="%s"' % (name, escape(unicode(value)))
 
    def getstyle(self, tag): 

src/p/y/py-1.4.20/testing/root/test_xmlgen.py   py(Download)
                return x.encode('utf-8')
            return x
    y = py.xml.escape(uvalue)
    assert y == uvalue
    x = py.xml.escape(A())
    assert x == uvalue
    if py.std.sys.version_info[0] < 3:
        assert isinstance(x, unicode)
        assert isinstance(y, unicode)
        y = py.xml.escape(uvalue.encode('utf-8'))

src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/_pytest/junitxml.py   nupic-linux64(Download)
        else:
            return unicode('#x%04X') % i
    return py.xml.raw(illegal_xml_re.sub(repl, py.xml.escape(arg)))
 
def pytest_addoption(parser):
    def pytest_internalerror(self, excrepr):
        self.errors += 1
        data = py.xml.escape(excrepr)
        self.tests.append(
            Junit.testcase(

src/p/y/pytest-2.5.2/_pytest/junitxml.py   pytest(Download)
        else:
            return unicode('#x%04X') % i
    return py.xml.raw(illegal_xml_re.sub(repl, py.xml.escape(arg)))
 
def pytest_addoption(parser):