about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_python4
1 files changed, 2 insertions, 2 deletions
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