Skip to content

Commit e37a461

Browse files
committed
chore(ruff): sort imports.
1 parent 3a056b3 commit e37a461

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

roundup/rest.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
from __future__ import print_function
99

10-
from datetime import timedelta
11-
from hashlib import md5
1210
import hmac
1311
import json
1412
import logging
@@ -17,20 +15,20 @@
1715
import sys
1816
import time
1917
import traceback
18+
from datetime import timedelta
19+
from hashlib import md5
2020

2121
try:
2222
from urllib.parse import urlparse
2323
except ImportError:
2424
from urlparse import urlparse
2525

26-
from roundup import actions
27-
from roundup import date
28-
from roundup import hyperdb
29-
from roundup.anypy.strings import bs2b, b2s, u2s, is_us
30-
from roundup.cgi.exceptions import NotFound, Unauthorised, PreconditionFailed
26+
from roundup import actions, date, hyperdb
27+
from roundup.anypy.strings import b2s, bs2b, is_us, u2s
28+
from roundup.cgi.exceptions import NotFound, PreconditionFailed, Unauthorised
3129
from roundup.exceptions import Reject, UsageError
3230
from roundup.i18n import _
33-
from roundup.rate_limit import RateLimit, Gcra
31+
from roundup.rate_limit import Gcra, RateLimit
3432

3533
logger = logging.getLogger('roundup.rest')
3634

@@ -2641,8 +2639,8 @@ def format_dispatch_output(self, accept_mime_type, output,
26412639
# capture values in error with types unsupported
26422640
# by dicttoxml e.g. an exception, into something it
26432641
# can handle
2644-
import numbers
26452642
import collections
2643+
import numbers
26462644
for key, val in output['error'].items():
26472645
if isinstance(val, numbers.Number) or type(val) in \
26482646
(str, unicode): # noqa: SIM114

0 commit comments

Comments
 (0)