Skip to content

Fix Deprecation Warning in timeutils.py and archive.py (#75) - #98

Closed
utkarshasinha wants to merge 2 commits into
aboutcode-org:mainfrom
utkarshasinha:fix/deprecation-warnings-75
Closed

Fix Deprecation Warning in timeutils.py and archive.py (#75)#98
utkarshasinha wants to merge 2 commits into
aboutcode-org:mainfrom
utkarshasinha:fix/deprecation-warnings-75

Conversation

@utkarshasinha

Copy link
Copy Markdown

Fixes #75

Changes:

  1. Replace datetime.utcnow() with datetime.now(timezone.utc) in timeutils.py
    (deprecated since Python 3.12, scheduled for removal in Python 3.14+)

  2. Add filter='data' to tar.extractall() in archive.py with fallback
    for Python < 3.12 (Python 3.14 will default to filtering tar archives)

Signed-off-by: utkarshasinha <utkarsha20005@gmail.com>
Signed-off-by: utkarshasinha <utkarsha20005@gmail.com>
@utkarshasinha
utkarshasinha deleted the fix/deprecation-warnings-75 branch February 16, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix DeprecationWarning in timeutils.py and archive.py

1 participant