diff roundup/pygettext.py @ 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 78bca158e1e6
children 9c3ec0a5c7fc
line wrap: on
line diff
--- 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/