Sort imports

This commit is contained in:
Florian Mounier 2016-07-04 14:32:33 +02:00
parent 4b74102e1c
commit 221379ef85
7 changed files with 9 additions and 13 deletions

View File

@ -1,3 +1,3 @@
[pytest]
addopts = --flake8 --isort --cov radicale radicale
addopts = --flake8 --isort --cov radicale/ tests
norecursedirs = dist .cache .git build *.egg-info .eggs venv

View File

@ -23,18 +23,17 @@ from a python programme with ``radicale.__main__.run()``.
"""
import atexit
import os
import sys
import optparse
import os
import select
import signal
import socket
import ssl
import sys
from wsgiref.simple_server import make_server
from . import (
Application, config, ThreadedHTTPServer, ThreadedHTTPSServer, log,
RequestHandler, VERSION)
from . import (VERSION, Application, RequestHandler, ThreadedHTTPServer,
ThreadedHTTPSServer, config, log)
# This is a script, many branches and variables

View File

@ -53,8 +53,8 @@ following significantly more secure schemes are parsable by Radicale:
"""
import functools
import base64
import functools
import hashlib
import os
from importlib import import_module

View File

@ -24,10 +24,8 @@ Give a configparser-like interface to read and write configuration.
"""
import os
from configparser import RawConfigParser as ConfigParser
# Default configuration
INITIAL_CONFIG = {
"server": {

View File

@ -22,11 +22,11 @@ http://docs.python.org/library/logging.config.html
"""
import os
import sys
import logging
import logging.config
import os
import signal
import sys
def configure_from_file(filename, debug, logger):

View File

@ -40,8 +40,8 @@ Leading or ending slashes are trimmed from collection's path.
import os.path
import re
from configparser import ConfigParser
from io import StringIO
from importlib import import_module
from io import StringIO
def load(configuration, logger):

View File

@ -36,7 +36,6 @@ import vobject
from . import client, storage
NAMESPACES = {
"C": "urn:ietf:params:xml:ns:caldav",
"CR": "urn:ietf:params:xml:ns:carddav",