We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
In Python3 the following is deprecated. This is causing pyez to give warnings when running in any CI environment.
pyez
/usr/lib/python3.6/site-packages/jnpr/junos/utils/config.py:501: DeprecationWarning: 'U' mode is deprecated rpc_contents = open(kvargs['path'], 'rU').read()
The text was updated successfully, but these errors were encountered:
Suggest replacing current /usr/lib/python3.6/site-packages/jnpr/junos/utils/config.py:501:
/usr/lib/python3.6/site-packages/jnpr/junos/utils/config.py:501
rpc_contents = open(kvargs['path'], 'rU').read()
with:
try: # Explicitly request Python 3.x universal newline rpc_contents = open(kvargs['path'], 'r', newline=None).read() except TypeError: # Fallback to Python 2.x universal newline rpc_contents = open(kvargs['path'], 'rU').read()
See this question and answer.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi,
In Python3 the following is deprecated. This is causing
pyez
to give warnings when running in any CI environment.The text was updated successfully, but these errors were encountered: