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
5edcd90f
Kaydet (Commit)
5edcd90f
authored
May 23, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use 'get_command_obj()' instead of 'find_command_obj()'.
üst
3c67b1dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cmd.py
Lib/distutils/cmd.py
+3
-3
bdist_dumb.py
Lib/distutils/command/bdist_dumb.py
+1
-1
No files found.
Lib/distutils/cmd.py
Dosyayı görüntüle @
5edcd90f
...
...
@@ -183,7 +183,7 @@ class Command:
# Option_pairs: list of (src_option, dst_option) tuples
src_cmd_obj
=
self
.
distribution
.
find
_command_obj
(
src_cmd
)
src_cmd_obj
=
self
.
distribution
.
get
_command_obj
(
src_cmd
)
src_cmd_obj
.
ensure_ready
()
for
(
src_option
,
dst_option
)
in
option_pairs
:
if
getattr
(
self
,
dst_option
)
is
None
:
...
...
@@ -192,11 +192,11 @@ class Command:
def
find_peer
(
self
,
command
,
create
=
1
):
"""Wrapper around Distribution's '
find
_command_obj()' method:
"""Wrapper around Distribution's '
get
_command_obj()' method:
find (create if necessary and 'create' is true) the command
object for 'command'.."""
cmd_obj
=
self
.
distribution
.
find
_command_obj
(
command
,
create
)
cmd_obj
=
self
.
distribution
.
get
_command_obj
(
command
,
create
)
cmd_obj
.
ensure_ready
()
return
cmd_obj
...
...
Lib/distutils/command/bdist_dumb.py
Dosyayı görüntüle @
5edcd90f
...
...
@@ -63,7 +63,7 @@ class bdist_dumb (Command):
# command object that has *not* been finalized, so we can set
# options on it! (The option we set, 'root', is so that we can do
# a proper "fake install" using this install command object.)
install
=
self
.
distribution
.
find
_command_obj
(
'install'
)
install
=
self
.
distribution
.
get
_command_obj
(
'install'
)
install
.
root
=
self
.
bdist_dir
self
.
announce
(
"installing to
%
s"
%
self
.
bdist_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