xsteadfastx / xonsh-docker-tabcomplete

MIT License
9 stars 3 forks source link

Deprecation warning #3

Open michaelaye opened 5 years ago

michaelaye commented 5 years ago

Using xonsh 0.8.0 I get this, loading this xontrib:

$ xonsh                                                                              (base)
/Users/klay6683/miniconda3/lib/python3.6/site-packages/xonsh/__amalgam__.py:21808: DeprecationWarning: __xonsh_completers__ has been deprecated, please use __xonsh__.completers instead.
  DeprecationWarning,
sergiopr89 commented 5 years ago

Error shown:

/usr/local/lib/python3.6/dist-packages/xonsh/built_ins.py:1467: DeprecationWarning:
__xonsh_completers__ has been deprecated, please use __xonsh__.completers instead.

In order to fix it, change:

__xonsh_completers__['docker'] = docker_completer
__xonsh_completers__.move_to_end('docker', last=False)

By:

__xonsh__.completers['docker'] = docker_completer
__xonsh__.completers.move_to_end('docker', last=False)

In:

xontrib/docker_tabcomplete.xsh
sergiopr89 commented 5 years ago

Hi @xsteadfastx, when you have a moment, could you take a look and merge if proceeds, please?

Thank you.