call site 12 for path.local.open
apigen/rest/testing/test_rest.py - line 115
114
115
116
117
118
119
120
121
122
   def test_getlink(self):
->     fw = FileWriter(temppath.join('filewriter_getlink'))
       link = fw.getlink('function', 'Foo.bar', 'method_foo_bar')
       assert link == '#function-foo-bar'
       # only produce the same link target once...
       link = fw.getlink('function', 'Foo.bar', 'method_foo_bar')
       assert link is None
       link = fw.getlink('function', 'Foo.__init__', 'method_foo___init__')
       assert link == '#function-foo-init'
apigen/rest/genrest.py - line 136
134
135
136
137
   def __init__(self, fpath):
       self.fpath = fpath
->     self.fp = fpath.open('w+')
       self._defined_targets = []