internetarchive / internetarchive/warcprox

Warning of deprecated Python API

Open
#176 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
467
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Running under Python 3.10, I see this warning in the logs:

```
/usr/local/lib/python3.10/site-packages/warctools-4.10.0py3.10.egg/hanzo/warctools/record.py:174: FutureWarning: GzipFile was opened for writing, but this will change in future Python releases. Specify the mode argument for opening it for writing.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating hanzo/warctools/record.py at line 174 and inspect how GzipFile is opened for writing. Check the relevant project tests under Python 3.10 and verify that the FutureWarning no longer appears after the deprecated API usage is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.