Fix DeprecationWarning in timeutils.py and archive.py
@shashank-tomar0 is already working on this.
Since Nov 8, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Read commoncode/timeutils.py:61 and commoncode/archive.py:61 alongside the two warning messages, then reproduce the warnings with the project’s existing checks. Done means both warnings are addressed while preserving the intended UTC datetime and tar extraction behavior.
Written by the indexing model from the issue text.
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)
- Dominant language
- Python
- Stars
- 4
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/commoncode
-
Consider that Resource.parent can be None when removing resources from the codebasePossibly taken @Mirochill claimed this 177 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
aboutcode-org/commoncode#84 ·
-
Click 8.5.0: omitted boolean flags incorrectly trigger conflicting_options validationPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 66/100
aboutcode-org/commoncode#112 ·
-
Revisit cliutils.pyOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
aboutcode-org/commoncode#102 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
aboutcode-org/commoncode#101 · 1 comment ·
-
mass-scan: Create library to collect a whole project version from Software HeritageMay be free again @chinyeungli claimed this 264 days ago, and no pull request is open. Open
aboutcode-org/commoncode#77 · 7 comments · 1 assignee ·
All issues in aboutcode-org/commoncode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day