call site 0 for xml.escape.__call__
apigen/rest/testing/test_rest.py - line 140
137
138
139
140
141
142
143
   def test_write_section(self):
       tempdir = temppath.ensure('htmldirwriter', dir=1)
       hdw = self.get_filled_writer(HTMLDirWriter, HTMLHandler, HTMLHandler,
->                                  tempdir)
       assert tempdir.join('foo.html').check(file=1)
       assert tempdir.join('bar.html').check(file=1)
       assert tempdir.join('foo.html').read().startswith('<html>')
apigen/rest/testing/test_rest.py - line 89
86
87
88
89
90
   def get_filled_writer(self, writerclass, *args, **kwargs):
       dw = writerclass(*args, **kwargs)
       dw.write_section('foo', Rest(Paragraph('foo data')))
->     dw.write_section('bar', Rest(Paragraph('bar data')))
       return dw
apigen/rest/genrest.py - line 176
168
169
170
171
172
173
174
175
176
   def write_section(self, name, rest):
       if name == 'index':
           handler = self.indexhandler
       else:
           handler = self.filehandler
       h = handler(name)
       t = RestTransformer(rest)
       t.parse(h)
->     self.directory.ensure('%s.html' % (name,)).write(h.html)
rest/transform.py - line 182
181
182
   def _html(self):
->     return self.root.unicode()
xmlobj/html.py - line 34
32
33
34
35
   def unicode(self, indent=2):
       l = []
->     HtmlVisitor(l.append, indent, shortempty=False).visit(self) 
       return u"".join(l) 
xmlobj/visit.py - line 31
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   def visit(self, node): 
       """ dispatcher on node's class/bases name. """
       cls = node.__class__
       try:
           visitmethod = self.cache[cls]   
       except KeyError:
           for subclass in cls.__mro__: 
               visitmethod = getattr(self, subclass.__name__, None)
               if visitmethod is not None:
                   break
           else:
               visitmethod = self.object 
           self.cache[cls] = visitmethod
->     visitmethod(node) 
xmlobj/visit.py - line 59
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
   def Tag(self, tag):
       assert id(tag) not in self.visited
       try: 
           tag.parent = self.parents[-1]
       except IndexError: 
           tag.parent = None 
       self.visited[id(tag)] = 1
       tagname = getattr(tag, 'xmlname', tag.__class__.__name__)
       if self.curindent and not self._isinline(tagname):
           self.write("\n" + u' ' * self.curindent) 
       if tag:
           self.curindent += self.indent 
           self.write(u'<%s%s>' % (tagname, self.attributes(tag)))
           self.parents.append(tag) 
->         map(self.visit, tag)
           self.parents.pop() 
           self.write(u'</%s>' % tagname) 
           self.curindent -= self.indent 
       else:
           nameattr = tagname+self.attributes(tag) 
           if self._issingleton(tagname): 
               self.write(u'<%s/>' % (nameattr,))
           else: 
               self.write(u'<%s></%s>' % (nameattr, tagname))
xmlobj/visit.py - line 31
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   def visit(self, node): 
       """ dispatcher on node's class/bases name. """
       cls = node.__class__
       try:
           visitmethod = self.cache[cls]   
       except KeyError:
           for subclass in cls.__mro__: 
               visitmethod = getattr(self, subclass.__name__, None)
               if visitmethod is not None:
                   break
           else:
               visitmethod = self.object 
           self.cache[cls] = visitmethod
->     visitmethod(node) 
xmlobj/visit.py - line 59
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
   def Tag(self, tag):
       assert id(tag) not in self.visited
       try: 
           tag.parent = self.parents[-1]
       except IndexError: 
           tag.parent = None 
       self.visited[id(tag)] = 1
       tagname = getattr(tag, 'xmlname', tag.__class__.__name__)
       if self.curindent and not self._isinline(tagname):
           self.write("\n" + u' ' * self.curindent) 
       if tag:
           self.curindent += self.indent 
           self.write(u'<%s%s>' % (tagname, self.attributes(tag)))
           self.parents.append(tag) 
->         map(self.visit, tag)
           self.parents.pop() 
           self.write(u'</%s>' % tagname) 
           self.curindent -= self.indent 
       else:
           nameattr = tagname+self.attributes(tag) 
           if self._issingleton(tagname): 
               self.write(u'<%s/>' % (nameattr,))
           else: 
               self.write(u'<%s></%s>' % (nameattr, tagname))
xmlobj/visit.py - line 31
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   def visit(self, node): 
       """ dispatcher on node's class/bases name. """
       cls = node.__class__
       try:
           visitmethod = self.cache[cls]   
       except KeyError:
           for subclass in cls.__mro__: 
               visitmethod = getattr(self, subclass.__name__, None)
               if visitmethod is not None:
                   break
           else:
               visitmethod = self.object 
           self.cache[cls] = visitmethod
->     visitmethod(node) 
xmlobj/visit.py - line 35
33
34
35
   def object(self, obj):
       #self.write(obj) 
->     self.write(escape(unicode(obj)))