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
e5f4d3c2
Kaydet (Commit)
e5f4d3c2
authored
Şub 21, 2016
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge for issue #26186
üst
0911c0d2
558823a0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
abc.py
Lib/importlib/abc.py
+0
-1
util.py
Lib/importlib/util.py
+0
-5
test_lazy.py
Lib/test/test_importlib/test_lazy.py
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/importlib/abc.py
Dosyayı görüntüle @
e5f4d3c2
...
...
@@ -4,7 +4,6 @@ from . import _bootstrap_external
from
.
import
machinery
try
:
import
_frozen_importlib
# import _frozen_importlib_external
except
ImportError
as
exc
:
if
exc
.
name
!=
'_frozen_importlib'
:
raise
...
...
Lib/importlib/util.py
Dosyayı görüntüle @
e5f4d3c2
...
...
@@ -263,11 +263,6 @@ class LazyLoader(abc.Loader):
def
__check_eager_loader
(
loader
):
if
not
hasattr
(
loader
,
'exec_module'
):
raise
TypeError
(
'loader must define exec_module()'
)
elif
hasattr
(
loader
.
__class__
,
'create_module'
):
if
abc
.
Loader
.
create_module
!=
loader
.
__class__
.
create_module
:
# Only care if create_module() is overridden in a subclass of
# importlib.abc.Loader.
raise
TypeError
(
'loader cannot define create_module()'
)
@classmethod
def
factory
(
cls
,
loader
):
...
...
Lib/test/test_importlib/test_lazy.py
Dosyayı görüntüle @
e5f4d3c2
...
...
@@ -54,6 +54,7 @@ class LazyLoaderTests(unittest.TestCase):
def
test_init
(
self
):
with
self
.
assertRaises
(
TypeError
):
# Classes that dono't define exec_module() trigger TypeError.
util
.
LazyLoader
(
object
)
def
new_module
(
self
,
source_code
=
None
):
...
...
Misc/NEWS
Dosyayı görüntüle @
e5f4d3c2
...
...
@@ -185,6 +185,9 @@ Core and Builtins
Library
-------
Issue
#
26186
:
Remove
an
invalid
type
check
in
importlib
.
util
.
LazyLoader
.
-
Issue
#
26367
:
importlib
.
__init__
()
raises
ImportError
like
builtins
.
__import__
()
when
``
level
``
is
specified
but
without
an
accompanying
package
specified
.
...
...
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