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
e01aa53e
Kaydet (Commit)
e01aa53e
authored
Eyl 05, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.2: Issue #9561: distutils now reads and writes egg-info files using UTF-8
instead of the locale encoding.
üst
f7fbb7f7
a1bea6e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
install_egg_info.py
Lib/distutils/command/install_egg_info.py
+2
-3
dist.py
Lib/distutils/dist.py
+2
-4
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/command/install_egg_info.py
Dosyayı görüntüle @
e01aa53e
...
...
@@ -40,9 +40,8 @@ class install_egg_info(Command):
"Creating "
+
self
.
install_dir
)
log
.
info
(
"Writing
%
s"
,
target
)
if
not
self
.
dry_run
:
f
=
open
(
target
,
'w'
)
self
.
distribution
.
metadata
.
write_pkg_file
(
f
)
f
.
close
()
with
open
(
target
,
'w'
,
encoding
=
'UTF-8'
)
as
f
:
self
.
distribution
.
metadata
.
write_pkg_file
(
f
)
def
get_outputs
(
self
):
return
self
.
outputs
...
...
Lib/distutils/dist.py
Dosyayı görüntüle @
e01aa53e
...
...
@@ -1010,11 +1010,9 @@ class DistributionMetadata:
def
write_pkg_info
(
self
,
base_dir
):
"""Write the PKG-INFO file into the release tree.
"""
pkg_info
=
open
(
os
.
path
.
join
(
base_dir
,
'PKG-INFO'
),
'w'
)
try
:
with
open
(
os
.
path
.
join
(
base_dir
,
'PKG-INFO'
),
'w'
,
encoding
=
'UTF-8'
)
as
pkg_info
:
self
.
write_pkg_file
(
pkg_info
)
finally
:
pkg_info
.
close
()
def
write_pkg_file
(
self
,
file
):
"""Write the PKG-INFO format data to a file object.
...
...
Misc/NEWS
Dosyayı görüntüle @
e01aa53e
...
...
@@ -271,6 +271,9 @@ Core and Builtins
Library
-------
- Issue #9561: distutils now reads and writes egg-info files using UTF-8,
instead of the locale encoding.
- Issue #8286: The distutils command sdist will print a warning message instead
of crashing when an invalid path is given in the manifest template.
...
...
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