Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f715d2

Browse files
committed
Use string.ascii_letters instead of string.letters (SF bug #226706).
Work-around a font-lock bogosity.
1 parent 27eebb8 commit 0f715d2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/pipes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The problem:
44
------------
55
6-
Suppose you have some data that you want to convert to another format
7-
(e.g. from GIF image format to PPM image format). Maybe the
6+
Suppose you have some data that you want to convert to another format,
7+
such as from GIF image format to PPM image format. Maybe the
88
conversion involves several steps (e.g. piping it through compress or
99
uuencode). Some of the conversion steps may require that their input
1010
is a disk file, others may be able to read standard input; similar for
@@ -264,7 +264,7 @@ def makepipeline(infile, steps, outfile):
264264

265265
# Reliably quote a string as a single argument for /bin/sh
266266

267-
_safechars = string.letters + string.digits + '!@%_-+=:,./' # Safe unquoted
267+
_safechars = string.ascii_letters + string.digits + '!@%_-+=:,./' # Safe unquoted
268268
_funnychars = '"`$\\' # Unsafe inside "double quotes"
269269

270270
def quote(file):

0 commit comments

Comments
 (0)