call site 0 for path.local.visit
apigen/testing/test_apigen_example.py - line 238
235
236
237
238
239
240
241
   def test_source_links(self):
       self.apb.build_class_pages(['main.SomeSubClass', 'main.SomeClass'])
       self.spb.build_pages(self.fs_root)
->     self.linker.replace_dirpath(self.base, False)
       funchtml = self.base.join('api/main.SomeClass.html').read()
       assert funchtml.find('href="../source/pkg/someclass.py.html"') > -1
       _checkhtml(funchtml)
apigen/linker.py - line 85
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
   def replace_dirpath(self, dirpath, stoponerrors=True):
       """ replace temporary links in all html files in dirpath and below """
->     for fpath in dirpath.visit('*.html'):
           html = fpath.read()
           while 1:
               match = self._reg_tempurl.search(html)
               if not match:
                   break
               tempurl = match.group(1)
               try:
                   html = html.replace('"' + tempurl + '"',
                                       '"' + self.get_target(tempurl,
                                               fpath.relto(dirpath)) + '"')
               except KeyError:
                   if stoponerrors:
                       raise
                   html = html.replace('"' + tempurl + '"',
                                       '"apigen.notfound://%s"' % (tempurl,))
           fpath.write(html)