-
Notifications
You must be signed in to change notification settings - Fork 251
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
Fix build errors #362
Fix build errors #362
Conversation
@liyanhui1228 do we want to revisit the names? I'm open for discussion on what's the best naming. |
@@ -19,7 +19,7 @@ | |||
from opencensus.trace.trace_options import TraceOptions | |||
|
|||
_TRACE_CONTEXT_HEADER_NAME = 'X-Cloud-Trace-Context' | |||
_TRACE_CONTEXT_HEADER_FORMAT = '([0-9a-f]{32})(\/([0-9a-f]{16}))?(;o=(\d+))?' | |||
_TRACE_CONTEXT_HEADER_FORMAT = r'([0-9a-f]{32})(\/([0-9a-f]{16}))?(;o=(\d+))?' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a separate issue which was caught by the latest pylint.
The string literal used for regular expression was not properly escaped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about moving AsyncTransport
and SyncTransport
into the transport
module and losing sync
and async
altogether? In any case the rename LGTM.
* avoid using keyword in package names * fix build error
* avoid using keyword in package names * fix build error
* avoid using keyword in package names * fix build error
I'm not a fan of |
Me too! Let's see if we can get rid of it in #642. |
I'm getting build errors which seems to be related to the recent py3.6 upgrade in CI:
opencensus/stats/exporters/stackdriver_exporter.py:23:42: W606 'async' and 'await' are reserved keywords starting with Python 3.7
opencensus/stats/exporters/stackdriver_exporter.py:112:28: W606 'async' and 'await' are reserved keywords starting with Python 3.7
opencensus/stats/exporters/stackdriver_exporter.py:450:5: F841 local variable 'exception' is assigned to but never used
opencensus/trace/propagation/google_cloud_format.py:22:17: W605 invalid escape sequence '/'
opencensus/trace/propagation/google_cloud_format.py:22:40: W605 invalid escape sequence '\d'
async is becoming a keyword in python3.7, this blocks the current CI (which is using the latest py3.6, and failed due to warnings).