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
6a9a545a
Kaydet (Commit)
6a9a545a
authored
Nis 22, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Check that 'self.formats' is good early on.
üst
ddad73bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
sdist.py
Lib/distutils/command/sdist.py
+8
-3
No files found.
Lib/distutils/command/sdist.py
Dosyayı görüntüle @
6a9a545a
...
...
@@ -11,10 +11,10 @@ import fnmatch
from
types
import
*
from
glob
import
glob
from
distutils.core
import
Command
from
distutils.util
import
\
newer
,
create_tree
,
remove_tree
,
make_tarball
,
make_zipfile
,
native_path
from
distutils.util
import
newer
,
create_tree
,
remove_tree
,
native_path
from
distutils.archive_util
import
check_archive_formats
from
distutils.text_file
import
TextFile
from
distutils.errors
import
DistutilsExecError
from
distutils.errors
import
DistutilsExecError
,
DistutilsOptionError
class
sdist
(
Command
):
...
...
@@ -81,6 +81,11 @@ class sdist (Command):
elif
type
(
self
.
formats
)
is
StringType
:
self
.
formats
=
string
.
split
(
self
.
formats
,
','
)
bad_format
=
check_archive_formats
(
self
.
formats
)
if
bad_format
:
raise
DistutilsOptionError
,
\
"unknown archive format '
%
s'"
%
bad_format
def
run
(
self
):
...
...
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