changeset 8308:185335b2301b

build: issue2551399 - CI is failing with flake8 syntax error F824 Removed global declaration when only reading, not writing module/global variable in block scope.
author John Rouillard <rouilj@ieee.org>
date Sun, 11 May 2025 16:53:22 -0400
parents 4f36532a2482
children 81ca7ceb71db
files roundup/anypy/vendored/cgi.py roundup/pygettext.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/anypy/vendored/cgi.py	Sun May 11 16:41:19 2025 -0400
+++ b/roundup/anypy/vendored/cgi.py	Sun May 11 16:53:22 2025 -0400
@@ -82,7 +82,7 @@
     send an error message).
 
     """
-    global log, logfile, logfp
+    global log, logfp
     warnings.warn("cgi.log() is deprecated as of 3.10. Use logging instead",
                   DeprecationWarning, stacklevel=2)
     if logfile and not logfp:
--- a/roundup/pygettext.py	Sun May 11 16:41:19 2025 -0400
+++ b/roundup/pygettext.py	Sun May 11 16:53:22 2025 -0400
@@ -231,7 +231,6 @@
 
 
 def escape(s):
-    global escapes
     s = list(s)
     for i in range(len(s)):
         s[i] = escapes[ord(s[i])]

Roundup Issue Tracker: http://roundup-tracker.org/