Sort imports
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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": {
 | 
			
		||||
 
 | 
			
		||||
@@ -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):
 | 
			
		||||
 
 | 
			
		||||
@@ -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):
 | 
			
		||||
 
 | 
			
		||||
@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user