Deprecation Warnings

108 views
Skip to first unread message

Grové Steyn

unread,
Oct 26, 2018, 3:46:11 AM10/26/18
to xonsh
Hi

I am still getting many depreciation warnings with xonsh 0.8.1.

/usr/local/lib/python3.6/dist-packages/xonsh/__amalgam__.py:21828: DeprecationWarning: __xonsh_completers__ has been deprecated, please use __xonsh__.completers instead.
  DeprecationWarning,
<unknown>:1: DeprecationWarning: invalid escape sequence \w
/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:49: DeprecationWarning: invalid escape sequence \[
/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:50: DeprecationWarning: invalid escape sequence \]
/usr/lib/python3/dist-packages/pip/pep425tags.py:260: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
/usr/local/lib/python3.6/dist-packages/xonsh/__amalgam__.py:21828: DeprecationWarning: __xonsh_completers__ has been deprecated, please use __xonsh__.completers instead.
  DeprecationWarning,


Any idea how I can easily suppress this until it is fixed?

Grové

gilbert...@capitalone.com

unread,
Oct 26, 2018, 10:34:20 AM10/26/18
to xonsh
Hey Grové, 

You can suppress the DeprecationWarnings in your xonshrc if you add

import warnings
warnings
.filterwarnings("ignore",category=DeprecationWarning)

Grové Steyn

unread,
Oct 29, 2018, 5:05:06 AM10/29/18
to xonsh
Thanks - this is great.

G
Reply all
Reply to author
Forward
0 new messages