From 4454ccf47eccd2dabef808bef6bb712ee2804a99 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 16 Jul 2005 11:57:43 +0000 Subject: unposted: escape colons in _python -W option argument message --- Completion/Unix/Command/_python | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_python') diff --git a/Completion/Unix/Command/_python b/Completion/Unix/Command/_python index a430bcf4d..be27f8300 100644 --- a/Completion/Unix/Command/_python +++ b/Completion/Unix/Command/_python @@ -21,7 +21,7 @@ _arguments -C -s -S \ '-u[unbuffered binary stdout and stderr]' \ '-v[verbose (trace import statements)]' \ '(1 * -)-V[display version information]' \ - '-W+[warning control]:warning filter (action:message:category:module:lineno):(default always ignore module once error)' \ + '-W+[warning control]:warning filter (action\:message\:category\:module\:lineno):(default always ignore module once error)' \ '-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \ '(-)1:script file:_files -g "*.py(|c|o)(-.)"' \ '*::script argument: _normal' && return @@ -32,7 +32,7 @@ if [[ "$state" = modules ]]; then ${${=${(f)"$(_call_program modules $words[1] -c \ 'from\ pydoc\ import\ help\;\ help\(\"modules\"\)')"}[2,-3]}:#\(package\)} ) - _wanted modules expl module compadd -a modules + _wanted modules expl module compadd -a modules && return fi return 1 -- cgit 1.4.1