aboutcode-org / aboutcode-org/commoncode

Fix DeprecationWarning in timeutils.py and archive.py

Abierto
#75 1 comentario 0 reacciones 0 asignados Ver en GitHub
good first issue
Lenguaje dominante
Python
Estrellas
4
Forks
23
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.