microsoft / microsoft/azure-devops-python-api
Deprecation warning due to invalid escape sequences in Python 3.8
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 684
- 派生
- 218
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 1
描述
Deprecation warnings are raised due to invalid escape sequences in Python 3.8 . Below is a log of the warnings raised during compiling all the python files. Using raw strings or escaping them will fix this issue.
find . -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {}
./azure-devops/azure/devops/v6_0/feed/models.py:101: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v6_0/feed/models.py:224: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v6_0/feed/models.py:1080: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v5_1/feed/models.py:101: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v5_1/feed/models.py:220: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v5_1/feed/models.py:1049: DeprecationWarning: invalid escape sequence \,
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先运行所示的 find/xargs Python 3.8 编译命令,并检查 azure-devops/azure/devops/v6_0/feed/models.py 和 v5_1/feed/models.py 中的警告位置。更新受影响的字符串字面量,使无效转义警告消失,然后在 Python 文件上重新运行该命令,以确认结果干净。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100