Skip to content

Commit

Permalink
chore(ruff): sort imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
rouilj committed Dec 11, 2024
1 parent 3a056b3 commit e37a461
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions roundup/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

from __future__ import print_function

from datetime import timedelta
from hashlib import md5
import hmac
import json
import logging
Expand All @@ -17,20 +15,20 @@
import sys
import time
import traceback
from datetime import timedelta
from hashlib import md5

try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse

from roundup import actions
from roundup import date
from roundup import hyperdb
from roundup.anypy.strings import bs2b, b2s, u2s, is_us
from roundup.cgi.exceptions import NotFound, Unauthorised, PreconditionFailed
from roundup import actions, date, hyperdb
from roundup.anypy.strings import b2s, bs2b, is_us, u2s
from roundup.cgi.exceptions import NotFound, PreconditionFailed, Unauthorised
from roundup.exceptions import Reject, UsageError
from roundup.i18n import _
from roundup.rate_limit import RateLimit, Gcra
from roundup.rate_limit import Gcra, RateLimit

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

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

0 comments on commit e37a461

Please sign in to comment.