diff roundup/i18n.py @ 7300:57f34b0b912c

flake8 fixes move import to top, indentation, remove trailing whitespace ...
author John Rouillard <rouilj@ieee.org>
date Sun, 07 May 2023 09:10:10 -0400
parents 07ce4e4110f5
children 1471fcda252b
line wrap: on
line diff
--- a/roundup/i18n.py	Thu May 04 20:57:38 2023 -0400
+++ b/roundup/i18n.py	Sun May 07 09:10:10 2023 -0400
@@ -37,6 +37,7 @@
 
 import gettext as gettext_module
 import os
+import sys
 
 from roundup import msgfmt
 from roundup.anypy.strings import is_us
@@ -58,7 +59,6 @@
     LOCALE_DIRS.append(_mo_path)
 del _mo_path
 
-import sys
 # __file__ should be something like:
 #    /usr/local/lib/python3.10/site-packages/roundup/i18n.py
 # os.prefix should be /usr, /usr/local or root of virtualenv
@@ -82,7 +82,7 @@
     if os.path.isdir(_ldir):
         LOCALE_DIRS.append(_ldir)
 except AttributeError:
-    pass # no base_prefix on 2.7
+    pass  # no base_prefix on 2.7
 del _ldir
 
 # Roundup text domain

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