-
Notifications
You must be signed in to change notification settings - Fork 359
Open
Description
At least latest version oss2 raise this warnings, but I guess it might affect older ones
oss2/api.py:497: DeprecationWarning: invalid escape sequence \&
oss2/utils.py:156: DeprecationWarning: invalid escape sequence \waliyun-oss-python-sdk/oss2/api.py
Line 502 in a03eafe
| r'http://your-bucket.oss-cn-hangzhou.aliyuncs.com/logo.jpg?OSSAccessKeyId=YourAccessKeyId\&Expires=1447178011&Signature=UJfeJgvcypWq6Q%2Bm3IJcSHbvSak%3D' |
aliyun-oss-python-sdk/oss2/utils.py
Line 156 in a03eafe
| pattern = '^([a-zA-Z]+://)?[\w.-]+(:\d+)?$' |
Since Python 3.12 this kind of warning become SyntaxWarning, see: python/cpython#98401, which are not ignored by default as DeprecatedWarnings it would be nice if regexp/docstrings will wrap into the raw strings
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels