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
f22d8080
Kaydet (Commit)
f22d8080
authored
Eki 01, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #25280: Import trace messages emitted in verbose (-v) mode are no
longer formatted twice.
üst
0e25a8f2
0b40aab6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
_bootstrap_external.py
Lib/importlib/_bootstrap_external.py
+4
-4
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/importlib/_bootstrap_external.py
Dosyayı görüntüle @
f22d8080
...
...
@@ -429,15 +429,15 @@ def _validate_bytecode_header(data, source_stats=None, name=None, path=None):
raw_size
=
data
[
8
:
12
]
if
magic
!=
MAGIC_NUMBER
:
message
=
'bad magic number in {!r}: {!r}'
.
format
(
name
,
magic
)
_bootstrap
.
_verbose_message
(
message
)
_bootstrap
.
_verbose_message
(
'{}'
,
message
)
raise
ImportError
(
message
,
**
exc_details
)
elif
len
(
raw_timestamp
)
!=
4
:
message
=
'reached EOF while reading timestamp in {!r}'
.
format
(
name
)
_bootstrap
.
_verbose_message
(
message
)
_bootstrap
.
_verbose_message
(
'{}'
,
message
)
raise
EOFError
(
message
)
elif
len
(
raw_size
)
!=
4
:
message
=
'reached EOF while reading size of source in {!r}'
.
format
(
name
)
_bootstrap
.
_verbose_message
(
message
)
_bootstrap
.
_verbose_message
(
'{}'
,
message
)
raise
EOFError
(
message
)
if
source_stats
is
not
None
:
try
:
...
...
@@ -447,7 +447,7 @@ def _validate_bytecode_header(data, source_stats=None, name=None, path=None):
else
:
if
_r_long
(
raw_timestamp
)
!=
source_mtime
:
message
=
'bytecode is stale for {!r}'
.
format
(
name
)
_bootstrap
.
_verbose_message
(
message
)
_bootstrap
.
_verbose_message
(
'{}'
,
message
)
raise
ImportError
(
message
,
**
exc_details
)
try
:
source_size
=
source_stats
[
'size'
]
&
0xFFFFFFFF
...
...
Misc/NEWS
Dosyayı görüntüle @
f22d8080
...
...
@@ -10,6 +10,9 @@ Release date: XXXX-XX-XX
Core and Builtins
-----------------
- Issue #25280: Import trace messages emitted in verbose (-v) mode are no
longer formatted twice.
- Issue #25227: Optimize ASCII and latin1 encoders with the ``surrogateescape``
error handler: the encoders are now up to 3 times as fast. Initial patch
written by Serhiy Storchaka.
...
...
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