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
a00c2407
Kaydet (Commit)
a00c2407
authored
Mar 21, 2014
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20884: Don't assume in importlib.__init__ that __file__ is
defined.
üst
373f0a92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
__init__.py
Lib/importlib/__init__.py
+6
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/importlib/__init__.py
Dosyayı görüntüle @
a00c2407
...
@@ -22,7 +22,12 @@ else:
...
@@ -22,7 +22,12 @@ else:
# a second copy of the module.
# a second copy of the module.
_bootstrap
.
__name__
=
'importlib._bootstrap'
_bootstrap
.
__name__
=
'importlib._bootstrap'
_bootstrap
.
__package__
=
'importlib'
_bootstrap
.
__package__
=
'importlib'
_bootstrap
.
__file__
=
__file__
.
replace
(
'__init__.py'
,
'_bootstrap.py'
)
try
:
_bootstrap
.
__file__
=
__file__
.
replace
(
'__init__.py'
,
'_bootstrap.py'
)
except
NameError
:
# __file__ is not guaranteed to be defined, e.g. if this code gets
# frozen by a tool like cx_Freeze.
pass
sys
.
modules
[
'importlib._bootstrap'
]
=
_bootstrap
sys
.
modules
[
'importlib._bootstrap'
]
=
_bootstrap
# To simplify imports in test code
# To simplify imports in test code
...
...
Misc/NEWS
Dosyayı görüntüle @
a00c2407
...
@@ -21,6 +21,8 @@ Core and Builtins
...
@@ -21,6 +21,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #20884: Don'
t
assume
that
__file__
is
defined
on
importlib
.
__init__
.
-
Issue
#
20879
:
Delay
the
initialization
of
encoding
and
decoding
tables
for
-
Issue
#
20879
:
Delay
the
initialization
of
encoding
and
decoding
tables
for
base32
,
ascii85
and
base85
codecs
in
the
base64
module
,
and
delay
the
base32
,
ascii85
and
base85
codecs
in
the
base64
module
,
and
delay
the
initialization
of
the
unquote_to_bytes
()
table
of
the
urllib
.
parse
module
,
to
initialization
of
the
unquote_to_bytes
()
table
of
the
urllib
.
parse
module
,
to
...
...
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