Skip to content

Commit 45a102e

Browse files
authored
Fixed conflict between context parameter and config.
1 parent f698043 commit 45a102e

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

pdbr/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ def debugger_cls(
9797

9898
klass = Pdb
9999

100-
style, theme, history_file, ipython_history_file, context = read_config()
100+
style, theme, history_file, ipython_history_file, config_context = read_config()
101101
RichPdb = rich_pdb_klass(
102102
klass,
103103
console=console,
104-
context=context,
104+
context=context if context is not None else config_context,
105105
is_celery=is_celery,
106106
show_layouts=show_layouts,
107107
)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pdbr"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
description = "Pdb with Rich library."
55
authors = ["Can Sarigol <ertugrulsarigol@gmail.com>"]
66
packages = [
@@ -51,7 +51,7 @@ verbose = false
5151

5252
[project]
5353
name = "pdbr"
54-
version = "0.9.0"
54+
version = "0.9.1"
5555

5656
[tool.setuptools]
5757
py-modules = []

tests/test_config.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,4 @@ def test_read_config():
5858
pdbr_history = str(Path.home() / ".pdbr_history")
5959
pdbr_history_ipython = str(Path.home() / ".pdbr_history_ipython")
6060

61-
assert read_config() == (
62-
"dim",
63-
None,
64-
pdbr_history,
65-
pdbr_history_ipython,
66-
)
61+
assert read_config() == ("dim", None, pdbr_history, pdbr_history_ipython, None)

0 commit comments

Comments
 (0)