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
9075cc46
Kaydet (Commit)
9075cc46
authored
Ock 17, 2005
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
If an extension can't be loaded, print warning and skip it instead of
erroring out.
üst
b7af39c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
EditorWindow.py
Lib/idlelib/EditorWindow.py
+5
-1
NEWS.txt
Lib/idlelib/NEWS.txt
+3
-0
No files found.
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
9075cc46
...
@@ -770,7 +770,11 @@ class EditorWindow:
...
@@ -770,7 +770,11 @@ class EditorWindow:
return
idleConf
.
GetExtensions
()
return
idleConf
.
GetExtensions
()
def
load_extension
(
self
,
name
):
def
load_extension
(
self
,
name
):
mod
=
__import__
(
name
,
globals
(),
locals
(),
[])
try
:
mod
=
__import__
(
name
,
globals
(),
locals
(),
[])
except
ImportError
:
print
"
\n
Failed to import extension: "
,
name
return
None
cls
=
getattr
(
mod
,
name
)
cls
=
getattr
(
mod
,
name
)
ins
=
cls
(
self
)
ins
=
cls
(
self
)
self
.
extensions
[
name
]
=
ins
self
.
extensions
[
name
]
=
ins
...
...
Lib/idlelib/NEWS.txt
Dosyayı görüntüle @
9075cc46
...
@@ -3,6 +3,9 @@ What's New in IDLE 1.0.4?
...
@@ -3,6 +3,9 @@ What's New in IDLE 1.0.4?
*Release date: XX-Jan-2005*
*Release date: XX-Jan-2005*
- If an extension can't be loaded, print warning and skip it instead of
erroring out.
- Improve error handling when .idlerc can't be created. This is a partial
- Improve error handling when .idlerc can't be created. This is a partial
backport of configHandler.py, Revision 1.36, 11Jan05.
backport of configHandler.py, Revision 1.36, 11Jan05.
...
...
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