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
8044e5bb
Kaydet (Commit)
8044e5bb
authored
Mar 13, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate commands.getstatus().
üst
8e84c656
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
libcommands.tex
Doc/lib/libcommands.tex
+4
-0
commands.py
Lib/commands.py
+2
-0
No files found.
Doc/lib/libcommands.tex
Dosyayı görüntüle @
8044e5bb
...
...
@@ -39,6 +39,10 @@ and the return value is a string containing the command's output.
Return the output of
\samp
{
ls -ld
\var
{
file
}}
as a string. This
function uses the
\function
{
getoutput()
}
function, and properly
escapes backslashes and dollar signs in the argument.
\deprecated
{
2.6
}{
This function is nonobvious and useless,
also the name is misleading in the presence of
\function
{
getstatusoutput()
}
.
}
\end{funcdesc}
Example:
...
...
Lib/commands.py
Dosyayı görüntüle @
8044e5bb
...
...
@@ -32,6 +32,8 @@ __all__ = ["getstatusoutput","getoutput","getstatus"]
#
def
getstatus
(
file
):
"""Return output of "ls -ld <file>" in a string."""
import
warnings
warnings
.
warn
(
"commands.getstatus() is deprecated"
,
DeprecationWarning
)
return
getoutput
(
'ls -ld'
+
mkarg
(
file
))
...
...
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