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
0f715d2a
Kaydet (Commit)
0f715d2a
authored
Tem 20, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use string.ascii_letters instead of string.letters (SF bug #226706).
Work-around a font-lock bogosity.
üst
27eebb8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pipes.py
Lib/pipes.py
+3
-3
No files found.
Lib/pipes.py
Dosyayı görüntüle @
0f715d2a
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
The problem:
The problem:
------------
------------
Suppose you have some data that you want to convert to another format
Suppose you have some data that you want to convert to another format
,
(e.g. from GIF image format to PPM image format)
. Maybe the
such as from GIF image format to PPM image format
. Maybe the
conversion involves several steps (e.g. piping it through compress or
conversion involves several steps (e.g. piping it through compress or
uuencode). Some of the conversion steps may require that their input
uuencode). Some of the conversion steps may require that their input
is a disk file, others may be able to read standard input; similar for
is a disk file, others may be able to read standard input; similar for
...
@@ -264,7 +264,7 @@ def makepipeline(infile, steps, outfile):
...
@@ -264,7 +264,7 @@ def makepipeline(infile, steps, outfile):
# Reliably quote a string as a single argument for /bin/sh
# Reliably quote a string as a single argument for /bin/sh
_safechars
=
string
.
letters
+
string
.
digits
+
'!@
%
_-+=:,./'
# Safe unquoted
_safechars
=
string
.
ascii_letters
+
string
.
digits
+
'!@
%
_-+=:,./'
# Safe unquoted
_funnychars
=
'"`$
\\
'
# Unsafe inside "double quotes"
_funnychars
=
'"`$
\\
'
# Unsafe inside "double quotes"
def
quote
(
file
):
def
quote
(
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