python.el: Fix detection of native completion in Python 3 (bug #24401)
commitdbb341022870ecad4c9177485a6770a355633cc0
authorClément Pit--Claudel <clement.pitclaudel@live.com>
Thu, 27 Oct 2016 02:46:28 +0000 (26 22:46 -0400)
committerClément Pit--Claudel <clement.pitclaudel@live.com>
Mon, 31 Oct 2016 12:35:33 +0000 (31 08:35 -0400)
treea210fce9fa559b08b7a53e8c890cdfbca95c04dd
parent91c97b6eed708f5a1f34478b52f42ef9e51efcb5
python.el: Fix detection of native completion in Python 3 (bug #24401)

With Python 3.5, (python-shell-completion-native-get-completions ... "")
would return an empty list, causing python.el to think that native
completion was unavailable (the difference between Python 2 and Python 3
is due to https://bugs.python.org/issue25660).

* lisp/progmodes/python.el (python-shell-completion-native-try): Use "_"
  to check whether native completion is available instead of "".
lisp/progmodes/python.el