aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index f75b5cb51ae..47bdef2c928 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1633,8 +1633,9 @@ completions on the current context."
1633 (string-match "^\\(from\\|import\\)[ \t]" line)) 1633 (string-match "^\\(from\\|import\\)[ \t]" line))
1634 (python-shell-completion--get-completions 1634 (python-shell-completion--get-completions
1635 line process python-shell-module-completion-string-code) 1635 line process python-shell-module-completion-string-code)
1636 (python-shell-completion--get-completions 1636 (and (> (length input) 0)
1637 input process python-shell-completion-string-code))) 1637 (python-shell-completion--get-completions
1638 input process python-shell-completion-string-code))))
1638 (completion (when completions 1639 (completion (when completions
1639 (try-completion input completions)))) 1640 (try-completion input completions))))
1640 (cond ((eq completion t) 1641 (cond ((eq completion t)