aboutcode-org / aboutcode-org/commoncode

Fix DeprecationWarning in timeutils.py and archive.py

未关闭
#75 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
good first issue
主要语言
Python
星标
4
派生
23
PR 合并指标
30 天内没有已合并 PR

描述

```
commoncode/timeutils.py:61: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
datim = dt or datetime.utcnow()
```
```
commoncode/archive.py:61: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
tar.extractall(target_dir, members=to_extract)
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。