We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2e35e7 commit 961b945Copy full SHA for 961b945
ptpython/repl.py
@@ -433,9 +433,10 @@ def enter_to_continue() -> None:
433
input("\nPress ENTER to continue...")
434
435
# Check whether this file exists.
436
- if not os.path.exists(config_file) and explicit_config_file:
437
- print("Impossible to read %r" % config_file)
438
- enter_to_continue()
+ if not os.path.exists(config_file):
+ if explicit_config_file:
+ print(f"Impossible to read {config_file}")
439
+ enter_to_continue()
440
return
441
442
# Run the config file in an empty namespace.
0 commit comments