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 60bb107 commit 9d35133Copy full SHA for 9d35133
1 file changed
Lib/site.py
@@ -478,7 +478,15 @@ def register_readline():
478
readline.parse_and_bind('bind ^I rl_complete')
479
else:
480
readline.parse_and_bind('tab: complete')
481
- readline.read_init_file()
+
482
+ try:
483
+ readline.read_init_file()
484
+ except OSError:
485
+ # An OSError here could have many causes, but the most likely one
486
+ # is that there's no .inputrc file (or .editrc file in the case of
487
+ # Mac OS X + libedit) in the expected location. In that case, we
488
+ # want to ignore the exception.
489
+ pass
490
491
history = os.path.join(os.path.expanduser('~'), '.python_history')
492
try:
0 commit comments