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

SyntaxWarning/DeprecatedWarnings invalid escape sequence #317

Open
cloudissue opened this issue Feb 27, 2025 · 0 comments
Open

SyntaxWarning/DeprecatedWarnings invalid escape sequence #317

cloudissue opened this issue Feb 27, 2025 · 0 comments

Comments

@cloudissue
Copy link

I am using the latest log SDK (aliyun-log-python-sdk = "0.9.14") in FC with python 3.10.
There are waring message as below.
It seems that it should be the same reason as aliyun/aliyun-oss-python-sdk#387 in OSS SDK.
Could someone help on this point and fix the syntax warning?
Thanks a lot.

/usr/local/lib/python3.10/dist-packages/aliyun/log/etl_core/trans_comp/trans_kv.py:36: DeprecationWarning: invalid escape sequence '\s'
  p2 = u'(?!{0})([\u4e00-\u9fa5\u0800-\u4e00\\w\\.\\-]+)\\s*{0}\\s*{1}\s*([^{1}]*?)\s*{1}'
/usr/local/lib/python3.10/dist-packages/aliyun/log/etl_core/trans_comp/trans_kv.py:38: DeprecationWarning: invalid escape sequence '\s'
  p2 = u'(?!{0})([\u4e00-\u9fa5\u0800-\u4e00\\w\\.\\-]+)\\s*{0}\\s*{1}\s*((?:[^{1}]|\\\\{1})*?[^\\\\]){1}'
/usr/local/lib/python3.10/dist-packages/aliyun/log/etl_core/trans_comp/trans_json.py:68: DeprecationWarning: invalid escape sequence '\.'
  """
/usr/local/lib/python3.10/dist-packages/aliyun/log/logtail_config_detail.py:113: DeprecationWarning: invalid escape sequence '\*'
  """The logtail config for common_reg_log
/usr/local/lib/python3.10/dist-packages/aliyun/log/logtail_config_detail.py:442: DeprecationWarning: invalid escape sequence '\w'
  """The logtail config for simple mode
/usr/local/lib/python3.10/dist-packages/aliyun/log/logtail_config_detail.py:506: DeprecationWarning: invalid escape sequence '\w'
  """The logtail config for separator mode
/usr/local/lib/python3.10/dist-packages/aliyun/log/logtail_config_detail.py:606: DeprecationWarning: invalid escape sequence '\w'
  """The logtail config for simple mode
/usr/local/lib/python3.10/dist-packages/aliyun/log/logtail_config_detail.py:687: DeprecationWarning: invalid escape sequence '\w'
  """The logtail config for full regex mode
/usr/local/lib/python3.10/dist-packages/aliyun/log/logtail_config_detail.py:788: DeprecationWarning: invalid escape sequence '\w'
  """The logtail config for json mode
/usr/local/lib/python3.10/dist-packages/aliyun/log/logtail_config_detail.py:877: DeprecationWarning: invalid escape sequence '\w'
  """The logtail config for Apsara mode
/usr/local/lib/python3.10/dist-packages/aliyun/log/logger_hanlder.py:230: DeprecationWarning: invalid escape sequence '\s'
  p2 = u'(?!{0})([\u4e00-\u9fa5\u0800-\u4e00\\w\\.\\-]+)\\s*{0}\\s*"\s*([^"]+?)\s*"'

Image

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

1 participant