-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
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*"'
Metadata
Metadata
Assignees
Labels
No labels
