Open Taragolis opened 4 months ago
At least latest version oss2 raise this warnings, but I guess it might affect older ones
oss2
oss2/api.py:497: DeprecationWarning: invalid escape sequence \& oss2/utils.py:156: DeprecationWarning: invalid escape sequence \w
https://github.com/aliyun/aliyun-oss-python-sdk/blob/a03eafee1059c740e60cc36f87c1890798366817/oss2/api.py#L502 https://github.com/aliyun/aliyun-oss-python-sdk/blob/a03eafee1059c740e60cc36f87c1890798366817/oss2/utils.py#L156
Since Python 3.12 this kind of warning become SyntaxWarning, see: https://github.com/python/cpython/issues/98401, which are not ignored by default as DeprecatedWarnings it would be nice if regexp/docstrings will wrap into the raw strings
SyntaxWarning
DeprecatedWarnings
At least latest version
oss2
raise this warnings, but I guess it might affect older oneshttps://github.com/aliyun/aliyun-oss-python-sdk/blob/a03eafee1059c740e60cc36f87c1890798366817/oss2/api.py#L502 https://github.com/aliyun/aliyun-oss-python-sdk/blob/a03eafee1059c740e60cc36f87c1890798366817/oss2/utils.py#L156
Since Python 3.12 this kind of warning become
SyntaxWarning
, see: https://github.com/python/cpython/issues/98401, which are not ignored by default asDeprecatedWarnings
it would be nice if regexp/docstrings will wrap into the raw strings