Fix WordCompleter import

Since May 2018 [1], the WordCompleter and PathCompleter moved
from prompt_toolkit 's contrib module to prompt_toolkit.completion

Without this patch, it is impossible to use the interactive-release
CLI with the latest versions of prompt_toolkit, which is not freezed
in the requirements.

This fixes the issue by using the latest way to import WordCompleter
and ensuring users will have the latest prompt_toolkit versions
compatible with this change.

[1]: 8d12c16081 (diff-c25fe0509d70181361304341982e6d0f)

Change-Id: Ia9180a10f0aa8f6f8ed25d7fd5e4e3ec39f86714
This commit is contained in:
Jean-Philippe Evrard
2019-01-10 09:44:06 +01:00
parent 7752a019f6
commit cbe188a36e
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ import tempfile
import six
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.completion import WordCompleter
from prompt_toolkit import prompt
from prompt_toolkit.validation import ValidationError
from prompt_toolkit.validation import Validator

View File

@@ -17,7 +17,7 @@ keyring==7.3
requests>=2.5.2
PyYAML>=3.1.0
yamlordereddictloader
prompt_toolkit
prompt_toolkit>=2.0.7
tqdm
mwclient==0.8.1
jsonschema>=2.6.0