aboutcode-org / aboutcode-org/commoncode

Fix DeprecationWarning in timeutils.py and archive.py

Open
#75 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
4
Forks
23
PR merge metrics
No merged PRs in 30d

Description

```
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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.