DebugClients/Python/coverage/collector.py

branch
Py2 comp.
changeset 3515
1b8381afe38f
parent 3499
f2d4b02c7e88
child 4489
d0d6e4ad31bd
diff -r d85fadb263a0 -r 1b8381afe38f DebugClients/Python/coverage/collector.py
--- a/DebugClients/Python/coverage/collector.py	Sun Apr 13 15:45:57 2014 +0200
+++ b/DebugClients/Python/coverage/collector.py	Tue Apr 15 22:41:08 2014 +0200
@@ -289,7 +289,9 @@
 
     def stop(self):
         """Stop collecting trace information."""
-        #print >>sys.stderr, "Stopping: %r" % self._collectors
+        #print("Stopping: %r" % self._collectors, file=sys.stderr)
+        if not self._collectors:
+            return
         assert self._collectors
         assert self._collectors[-1] is self
 
@@ -351,3 +353,6 @@
             return self.data
         else:
             return {}
+
+#
+# eflag: FileType = Python2

eric ide

mercurial