Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b2499669
Kaydet (Commit)
b2499669
authored
Agu 06, 2018
tarafından
Anthony Sottile
Kaydeden (comit)
INADA Naoki
Agu 06, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-19891: Ignore error while writing history file (GH-8483)
üst
336c9458
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
site.py
Lib/site.py
+10
-1
2018-07-26-08-45-49.bpo-19891.Y-3IiB.rst
...S.d/next/Library/2018-07-26-08-45-49.bpo-19891.Y-3IiB.rst
+2
-0
No files found.
Lib/site.py
Dosyayı görüntüle @
b2499669
...
...
@@ -439,7 +439,16 @@ def enablerlcompleter():
readline
.
read_history_file
(
history
)
except
OSError
:
pass
atexit
.
register
(
readline
.
write_history_file
,
history
)
def
write_history
():
try
:
readline
.
write_history_file
(
history
)
except
(
FileNotFoundError
,
PermissionError
):
# home directory does not exist or is not writable
# https://bugs.python.org/issue19891
pass
atexit
.
register
(
write_history
)
sys
.
__interactivehook__
=
register_readline
...
...
Misc/NEWS.d/next/Library/2018-07-26-08-45-49.bpo-19891.Y-3IiB.rst
0 → 100644
Dosyayı görüntüle @
b2499669
Ignore errors caused by missing / non-writable homedir while writing history
during exit of an interactive session. Patch by Anthony Sottile.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment