src/eric7/DebugClients/Python/coverage/control.py

branch
eric7
changeset 9374
ed79209469ad
parent 9209
b99e7fd55fd3
--- a/src/eric7/DebugClients/Python/coverage/control.py	Sat Oct 01 17:30:55 2022 +0200
+++ b/src/eric7/DebugClients/Python/coverage/control.py	Sat Oct 01 17:37:10 2022 +0200
@@ -424,11 +424,15 @@
         appropriate Python value.  For example, use True for booleans, not the
         string ``"True"``.
 
-        As an example, calling::
+        As an example, calling:
+
+        .. code-block:: python
 
             cov.set_option("run:branch", True)
 
-        has the same effect as this configuration file::
+        has the same effect as this configuration file:
+
+        .. code-block:: ini
 
             [run]
             branch = True
@@ -739,7 +743,10 @@
 
         aliases = None
         if self.config.paths:
-            aliases = PathAliases(relative=self.config.relative_files)
+            aliases = PathAliases(
+                debugfn=(self._debug.write if self._debug.should("pathmap") else None),
+                relative=self.config.relative_files,
+            )
             for paths in self.config.paths.values():
                 result = paths[0]
                 for pattern in paths[1:]:

eric ide

mercurial