From ab22f659bd59db95f5735b6f26ab21b9478ead94 Mon Sep 17 00:00:00 2001 From: Mikaeil Orfanian Date: Mon, 17 Feb 2020 15:46:59 +0100 Subject: [PATCH 1/2] Retain backwards compatibility Some other libraries (e.g. django-extensions) rely on the previous signature of this function. This change makes the function signature more flexible so current and older usages don't break. --- ptpython/repl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptpython/repl.py b/ptpython/repl.py index 4b8edf2a..e3f04e5c 100644 --- a/ptpython/repl.py +++ b/ptpython/repl.py @@ -268,7 +268,7 @@ def enable_deprecation_warnings() -> None: warnings.filterwarnings("default", category=DeprecationWarning, module="__main__") -def run_config(repl: PythonInput, config_file: str) -> None: +def run_config(repl: PythonInput, config_file: str="~/.ptpython/config.py") -> None: """ Execute REPL config file. From a1a85154add9f4b80bd4d2a4a082473c8ab31f53 Mon Sep 17 00:00:00 2001 From: Mikaeil Orfanian Date: Mon, 17 Feb 2020 15:54:59 +0100 Subject: [PATCH 2/2] Blacken --- ptpython/repl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptpython/repl.py b/ptpython/repl.py index e3f04e5c..06062dc3 100644 --- a/ptpython/repl.py +++ b/ptpython/repl.py @@ -268,7 +268,7 @@ def enable_deprecation_warnings() -> None: warnings.filterwarnings("default", category=DeprecationWarning, module="__main__") -def run_config(repl: PythonInput, config_file: str="~/.ptpython/config.py") -> None: +def run_config(repl: PythonInput, config_file: str = "~/.ptpython/config.py") -> None: """ Execute REPL config file.