call site 16 for code.Traceback.__init__
code/testing/test_excinfo.py - line 94
90
91
92
93
94
95
96
97
   def test_traceback_cut(self):
       co = py.code.Code(f)
       path, firstlineno = co.path, co.firstlineno 
       traceback = self.excinfo.traceback 
->     newtraceback = traceback.cut(path=path, firstlineno=firstlineno)
       assert len(newtraceback) == 1
       newtraceback = traceback.cut(path=path, lineno=firstlineno+2)
       assert len(newtraceback) == 1
code/traceback2.py - line 131
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
   def cut(self, path=None, lineno=None, firstlineno=None):
       """ return a Traceback instance wrapping part of this Traceback
   
               by provding any combination of path, lineno and firstlineno, the
               first frame to start the to-be-returned traceback is determined
   
               this allows cutting the first part of a Traceback instance e.g.
               for formatting reasons (removing some uninteresting bits that deal
               with handling of the exception/traceback)
           """
       for x in self:
           if ((path is None or x.frame.code.path == path) and
               (lineno is None or x.lineno == lineno) and
               (firstlineno is None or x.frame.code.firstlineno == firstlineno)):
->             return Traceback(x._rawentry)
       return self