Skip to content

Commit 1caf7e1

Browse files
committed
chore(ruff): sort imports
1 parent fd4f209 commit 1caf7e1

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

roundup/configuration.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,25 @@
77
# Roundup if used with Python 2 because it generates unicode objects
88
# where not expected by the Python code. Thus, a version check is
99
# used here instead of try/except.
10-
import sys
11-
import getopt
10+
import binascii
1211
import errno
12+
import getopt
1313
import logging
1414
import logging.config
1515
import os
1616
import re
17-
import time
1817
import smtplib
18+
import sys
19+
import time
1920

2021
import roundup.date
21-
22+
from roundup.anypy import random_
2223
from roundup.anypy.strings import b2s
23-
import roundup.anypy.random_ as random_
24-
import binascii
25-
from roundup.i18n import _
26-
2724
from roundup.backends import list_backends
25+
from roundup.i18n import _
2826

2927
if sys.version_info[0] > 2:
30-
import configparser # Python 3
28+
import configparser # Python 3
3129
else:
3230
import ConfigParser as configparser # Python 2
3331

@@ -897,7 +895,7 @@ def validate(self, options):
897895

898896
redis_available = False
899897
try:
900-
import redis # noqa: F401
898+
import redis # noqa: F401
901899
redis_available = True
902900
except ImportError:
903901
if sessiondb_backend == 'redis':
@@ -1011,7 +1009,7 @@ def str2value(self, value):
10111009
raise OptionValueError(self, value, self.class_description)
10121010

10131011
try:
1014-
import jinja2 # noqa: F401
1012+
import jinja2 # noqa: F401
10151013
jinja2_avail = "Available found"
10161014
except ImportError:
10171015
jinja2_avail = "Unavailable needs"

0 commit comments

Comments
 (0)