-
Notifications
You must be signed in to change notification settings - Fork 19
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
DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8 #61
Comments
Instead of creating separate tickets for each deprecation warning I will add more here:
|
According to the python docs, # Start the subprocess
if shell is True:
transport, protocol = yield from loop.subprocess_shell(
protocol_factory, " ".join(cmd), cwd=cwd, env=env,
stdout=stdout_slave, stderr=stderr_slave, close_fds=False)
else:
transport, protocol = yield from loop.subprocess_exec(
protocol_factory, *cmd, cwd=cwd, env=env,
stdout=stdout_slave, stderr=stderr_slave, close_fds=False) |
Additionally, I found out that >python3.6 supports asynchronous generators, but not below. Fixing the first deprecation could have CI routines that fail to build for anything lower than python3.7. |
I think we still want to maintain compatibility with at least Python 3.6 (Ubuntu Bionic). So that doesn't seem to be an option right now. |
That's what I thought, so the fix for the first deprecation will need to be a bit more creative haha. |
* fixed simple deprecation warnings * fixed the second assertRaisesRegex * deprecation fix that allows successful build in Python 2.7 for Xenial * added conditional for use of getargspec Python2.7 in Xenial * getfullargspec returns 7 values instead of 4 like getargspec
@ivanpauno I believe these are the issues you still found lingering with the |
I think this was resolved in #64 |
osrf_pycommon/osrf_pycommon/process_utils/async_execute_process_asyncio/impl.py
Line 54 in e3ceab6
The text was updated successfully, but these errors were encountered: