Use string.ascii_letters instead of string.letters (SF bug #226706).
Work-around a font-lock bogosity.
This commit is contained in:
parent
27eebb8c76
commit
0f715d2aa1
|
@ -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):
|
||||||
|
|
||||||
# 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):
|
||||||
|
|
Loading…
Reference in New Issue