From 67321cc9b086a62251beeca08f8146c6ceb1a2d4 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Tue, 16 Aug 2011 19:03:41 +0300 Subject: [PATCH] #9723: refactor regex. --- Lib/shlex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/shlex.py b/Lib/shlex.py index 92c49c36084..69f3b456af1 100644 --- a/Lib/shlex.py +++ b/Lib/shlex.py @@ -276,7 +276,7 @@ def split(s, comments=False, posix=True): return list(lex) -_find_unsafe = re.compile(r'[^\w@%\-\+=:,\./]', re.ASCII).search +_find_unsafe = re.compile(r'[^\w@%+=:,./-]', re.ASCII).search def quote(s): """Return a shell-escaped version of the string *s*."""