github / github/codeql

LGTM.com - false positive with relative import

Abierto
#7,978 1 comentario 0 reacciones 0 asignados Ver en GitHub
false-positive not security Python
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

**Description of the false positive**

LGTM is complaining about `logging` being imported both with plain `import` and with `import ... from`, but the latter is only used for a relative import of a module called `logging`. The standard module of the same name is only imported plainly, on the other hand.

**URL to the alert on the project page on LGTM.com**

https://lgtm.com/projects/g/abrt/retrace-server/snapshot/228913a00605c01b7b85f81f94b368871a429dd8/files/src/retrace/retrace_worker.py?sort=name&dir=ASC&mode=heatmap#xba03ebfb24472c08:1

Guía de contribución

Abrir la guía de contribución

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.