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
c0680e2d
Kaydet (Commit)
c0680e2d
authored
Ara 15, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cleaned up the module (PEP 8 + old fashion test removal)
üst
bf306cad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
install_data.py
Lib/distutils/command/install_data.py
+2
-3
No files found.
Lib/distutils/command/install_data.py
Dosyayı görüntüle @
c0680e2d
...
@@ -8,7 +8,6 @@ platform-independent data files."""
...
@@ -8,7 +8,6 @@ platform-independent data files."""
__revision__
=
"$Id$"
__revision__
=
"$Id$"
import
os
import
os
from
types
import
StringType
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils.util
import
change_root
,
convert_path
from
distutils.util
import
change_root
,
convert_path
...
@@ -35,7 +34,7 @@ class install_data(Command):
...
@@ -35,7 +34,7 @@ class install_data(Command):
self
.
data_files
=
self
.
distribution
.
data_files
self
.
data_files
=
self
.
distribution
.
data_files
self
.
warn_dir
=
1
self
.
warn_dir
=
1
def
finalize_options
(
self
):
def
finalize_options
(
self
):
self
.
set_undefined_options
(
'install'
,
self
.
set_undefined_options
(
'install'
,
(
'install_data'
,
'install_dir'
),
(
'install_data'
,
'install_dir'
),
(
'root'
,
'root'
),
(
'root'
,
'root'
),
...
@@ -45,7 +44,7 @@ class install_data(Command):
...
@@ -45,7 +44,7 @@ class install_data(Command):
def
run
(
self
):
def
run
(
self
):
self
.
mkpath
(
self
.
install_dir
)
self
.
mkpath
(
self
.
install_dir
)
for
f
in
self
.
data_files
:
for
f
in
self
.
data_files
:
if
type
(
f
)
is
StringType
:
if
isinstance
(
f
,
str
)
:
# it's a simple file, so copy it
# it's a simple file, so copy it
f
=
convert_path
(
f
)
f
=
convert_path
(
f
)
if
self
.
warn_dir
:
if
self
.
warn_dir
:
...
...
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