Mercurial > p > roundup > code
changeset 8523:b6b0da04e768
chore: ruff cleanup.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 19 Feb 2026 22:24:17 -0500 |
| parents | 82fc69e6d9d7 |
| children | 0af80f3ca263 |
| files | roundup/scripts/roundup_gettext.py |
| diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/scripts/roundup_gettext.py Thu Feb 19 22:15:12 2026 -0500 +++ b/roundup/scripts/roundup_gettext.py Thu Feb 19 22:24:17 2026 -0500 @@ -7,12 +7,11 @@ from __future__ import print_function import os - -# --- patch sys.path to make sure 'import roundup' finds correct version import os.path as osp import sys import tempfile +# --- patch sys.path to make sure 'import roundup' finds correct version thisdir = osp.dirname(osp.abspath(__file__)) rootdir = osp.dirname(osp.dirname(thisdir)) if (osp.exists(thisdir + '/__init__.py') and @@ -21,11 +20,10 @@ sys.path.insert(0, rootdir) # --/ -from roundup.anypy import scandir_ -from roundup import configuration -from roundup.cgi.TAL import talgettext -from roundup.i18n import _ -from roundup.pygettext import TokenEater, make_escapes, tokenize +from roundup import configuration # noqa: E402 +from roundup.cgi.TAL import talgettext # noqa: E402 +from roundup.i18n import _ # noqa: E402 +from roundup.pygettext import TokenEater, make_escapes, tokenize # noqa: E402 try: import polib
