Uses absoulte imports as recommended in PEP-8

This commit is contained in:
Frank Sachsenheim 2018-01-14 18:33:01 +01:00 committed by Unrud
parent db2e7f9568
commit 50d3d01ea3
6 changed files with 7 additions and 7 deletions

View File

@ -51,7 +51,7 @@ from xml.etree import ElementTree as ET
import vobject import vobject
from . import auth, rights, storage, web, xmlutils from radicale import auth, rights, storage, web, xmlutils
VERSION = pkg_resources.get_distribution('radicale').version VERSION = pkg_resources.get_distribution('radicale').version

View File

@ -32,7 +32,7 @@ import ssl
import sys import sys
from wsgiref.simple_server import make_server from wsgiref.simple_server import make_server
from . import (VERSION, Application, RequestHandler, ThreadedHTTPServer, from radicale import (VERSION, Application, RequestHandler, ThreadedHTTPServer,
ThreadedHTTPSServer, config, log, storage) ThreadedHTTPSServer, config, log, storage)

View File

@ -28,7 +28,7 @@ import os
from collections import OrderedDict from collections import OrderedDict
from configparser import RawConfigParser as ConfigParser from configparser import RawConfigParser as ConfigParser
from . import auth, rights, storage, web from radicale import auth, rights, storage, web
def positive_int(value): def positive_int(value):

View File

@ -43,7 +43,7 @@ import posixpath
import re import re
from importlib import import_module from importlib import import_module
from . import storage from radicale import storage
INTERNAL_TYPES = ("None", "none", "authenticated", "owner_write", "owner_only", INTERNAL_TYPES = ("None", "none", "authenticated", "owner_write", "owner_only",
"from_file") "from_file")

View File

@ -22,7 +22,7 @@ from importlib import import_module
import pkg_resources import pkg_resources
from . import storage from radicale import storage
NOT_FOUND = ( NOT_FOUND = (
client.NOT_FOUND, (("Content-Type", "text/plain"),), client.NOT_FOUND, (("Content-Type", "text/plain"),),

View File

@ -36,7 +36,7 @@ from http import client
from itertools import chain from itertools import chain
from urllib.parse import quote, unquote, urlparse from urllib.parse import quote, unquote, urlparse
from . import storage from radicale import storage
MIMETYPES = { MIMETYPES = {
"VADDRESSBOOK": "text/vcard", "VADDRESSBOOK": "text/vcard",