call site 1 for path.local.open
apigen/source/testing/test_browser.py - line 51
42
43
44
45
46
47
48
49
50
51
52
53
54
   def test_if_browser():
       tmp = py.test.ensuretemp("sourcebrowser")
       tmp.ensure("b.py").write(py.code.Source("""
           if 1:
               def f():
                   pass
           if 0:
               def g():
                   pass
->     """))
       mod = parse_path(tmp.join("b.py"))
       assert isinstance(mod.f, Function)
       py.test.raises(AttributeError, 'mod.g')
path/local/local.py - line 276
273
274
275
276
277
278
279
280
   def write(self, content, mode='wb'):
       """ write string content into path. """
       s = str(content)
->     f = self.open(mode)
       try:
           f.write(s)
       finally:
           f.close()