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

branch
eric7
changeset 9374
ed79209469ad
parent 9209
b99e7fd55fd3
equal deleted inserted replaced
9373:e074358157f4 9374:ed79209469ad
422 422
423 `value` is the new value for the option. This should be an 423 `value` is the new value for the option. This should be an
424 appropriate Python value. For example, use True for booleans, not the 424 appropriate Python value. For example, use True for booleans, not the
425 string ``"True"``. 425 string ``"True"``.
426 426
427 As an example, calling:: 427 As an example, calling:
428
429 .. code-block:: python
428 430
429 cov.set_option("run:branch", True) 431 cov.set_option("run:branch", True)
430 432
431 has the same effect as this configuration file:: 433 has the same effect as this configuration file:
434
435 .. code-block:: ini
432 436
433 [run] 437 [run]
434 branch = True 438 branch = True
435 439
436 As a special case, an `option_name` of ``"paths"`` will replace the 440 As a special case, an `option_name` of ``"paths"`` will replace the
737 self._post_init() 741 self._post_init()
738 self.get_data() 742 self.get_data()
739 743
740 aliases = None 744 aliases = None
741 if self.config.paths: 745 if self.config.paths:
742 aliases = PathAliases(relative=self.config.relative_files) 746 aliases = PathAliases(
747 debugfn=(self._debug.write if self._debug.should("pathmap") else None),
748 relative=self.config.relative_files,
749 )
743 for paths in self.config.paths.values(): 750 for paths in self.config.paths.values():
744 result = paths[0] 751 result = paths[0]
745 for pattern in paths[1:]: 752 for pattern in paths[1:]:
746 aliases.add(pattern, result) 753 aliases.add(pattern, result)
747 754

eric ide

mercurial