Skip to content

Commit 7be3c8b

Browse files
committed
build: issue2551399 - CI is failing with flake8 syntax error F824
Removed global declaration when only reading, not writing module/global variable in block scope.
1 parent e4bb991 commit 7be3c8b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

roundup/anypy/vendored/cgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def initlog(*allargs):
8282
send an error message).
8383
8484
"""
85-
global log, logfile, logfp
85+
global log, logfp
8686
warnings.warn("cgi.log() is deprecated as of 3.10. Use logging instead",
8787
DeprecationWarning, stacklevel=2)
8888
if logfile and not logfp:

roundup/pygettext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ def make_escapes(pass_iso8859):
231231

232232

233233
def escape(s):
234-
global escapes
235234
s = list(s)
236235
for i in range(len(s)):
237236
s[i] = escapes[ord(s[i])]

0 commit comments

Comments
 (0)