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