Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode literals are causing error messages #178

Open
nwinemiller-dbx opened this issue May 20, 2021 · 1 comment
Open

Unicode literals are causing error messages #178

nwinemiller-dbx opened this issue May 20, 2021 · 1 comment

Comments

@nwinemiller-dbx
Copy link
Contributor

PyNSOT has lots of error regarding unicode literals which makes it really annoying to use.

nsot devices list -H device1
/usr/local/lib/python2.7/dist-packages/pynsot/app.py:848: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/
@click.pass_context
/usr/local/lib/python2.7/dist-packages/pynsot/commands/cmd_devices.py:35: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/
@click.pass_context
/usr/local/lib/python2.7/dist-packages/pynsot/commands/cmd_devices.py:79: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/
@click.pass_context
/usr/local/lib/python2.7/dist-packages/pynsot/commands/cmd_devices.py:176: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/
@click.pass_context
/usr/local/lib/python2.7/dist-packages/pynsot/commands/cmd_devices.py:200: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/
@click.pass_context
/usr/local/lib/python2.7/dist-packages/pynsot/commands/cmd_devices.py:234: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/
@click.pass_context
/usr/local/lib/python2.7/dist-packages/pynsot/commands/cmd_devices.py:315: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/
@click.pass_context

@jathanism
Copy link
Contributor

Those aren't errors fortunately, just warnings! A quick fix might be to silence this warning (or all warnings) when using the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants