[issue2551399] CI is failing with flake8syntax error F824

John Rouillard <[email protected]> Wed, 02 Apr 2025 17:33:07 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

roundup/anypy/vendored/cgi.py:85:5: F824 `global logfile` is unused: name is never assigned 
in scope
    global log, logfile, logfp
    ^
roundup/pygettext.py:234:5: F824 `global escapes` is unused: name is never assigned in scope
    global escapes
    ^
2     F824 `global logfile` is unused: name is never assigned in scope

https://docs.astral.sh/ruff/rules/global-variable-not-assigned/

This is a new flake8 rule which happens in CI with 3.10 or newer, 3.6/3.8
pass.

Consider suppressing it as the error is flagged in cgi.py which is vendored
code.

Alternatively fix the issue if the change is simple and can be verified correct.

----------
components: Web interface
keywords: Blocker
messages: 8371
nosy: rouilj
severity: normal
status: new
title: CI is failing with flake8syntax error F824
type: behavior
versions: devel

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551399>
_________________________________________________