Mercurial > p > roundup > code
diff roundup/configuration.py @ 7810:890097bc4cd0
chore(ruff): sort imports
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 16 Mar 2024 19:41:36 -0400 |
| parents | be6cb2e0d471 |
| children | a4b71f16c264 |
line wrap: on
line diff
--- a/roundup/configuration.py Thu Mar 14 19:04:19 2024 -0400 +++ b/roundup/configuration.py Sat Mar 16 19:41:36 2024 -0400 @@ -7,27 +7,25 @@ # Roundup if used with Python 2 because it generates unicode objects # where not expected by the Python code. Thus, a version check is # used here instead of try/except. -import sys +import binascii +import errno import getopt -import errno import logging import logging.config import os import re +import smtplib +import sys import time -import smtplib import roundup.date - +from roundup.anypy import random_ from roundup.anypy.strings import b2s -import roundup.anypy.random_ as random_ -import binascii +from roundup.backends import list_backends from roundup.i18n import _ -from roundup.backends import list_backends - if sys.version_info[0] > 2: - import configparser # Python 3 + import configparser # Python 3 else: import ConfigParser as configparser # Python 2 @@ -897,7 +895,7 @@ redis_available = False try: - import redis # noqa: F401 + import redis # noqa: F401 redis_available = True except ImportError: if sessiondb_backend == 'redis': @@ -1011,7 +1009,7 @@ raise OptionValueError(self, value, self.class_description) try: - import jinja2 # noqa: F401 + import jinja2 # noqa: F401 jinja2_avail = "Available found" except ImportError: jinja2_avail = "Unavailable needs"
