DebugClients/Python/coverage/collector.py

branch
Py2 comp.
changeset 3515
1b8381afe38f
parent 3499
f2d4b02c7e88
child 4489
d0d6e4ad31bd
equal deleted inserted replaced
3506:d85fadb263a0 3515:1b8381afe38f
287 # threads. 287 # threads.
288 threading.settrace(self._installation_trace) 288 threading.settrace(self._installation_trace)
289 289
290 def stop(self): 290 def stop(self):
291 """Stop collecting trace information.""" 291 """Stop collecting trace information."""
292 #print >>sys.stderr, "Stopping: %r" % self._collectors 292 #print("Stopping: %r" % self._collectors, file=sys.stderr)
293 if not self._collectors:
294 return
293 assert self._collectors 295 assert self._collectors
294 assert self._collectors[-1] is self 296 assert self._collectors[-1] is self
295 297
296 self.pause() 298 self.pause()
297 self.tracers = [] 299 self.tracers = []
349 """ 351 """
350 if self.branch: 352 if self.branch:
351 return self.data 353 return self.data
352 else: 354 else:
353 return {} 355 return {}
356
357 #
358 # eflag: FileType = Python2

eric ide

mercurial