Uses absoulte imports as recommended in PEP-8
This commit is contained in:
parent
db2e7f9568
commit
50d3d01ea3
@ -51,7 +51,7 @@ from xml.etree import ElementTree as ET
|
||||
|
||||
import vobject
|
||||
|
||||
from . import auth, rights, storage, web, xmlutils
|
||||
from radicale import auth, rights, storage, web, xmlutils
|
||||
|
||||
|
||||
VERSION = pkg_resources.get_distribution('radicale').version
|
||||
|
@ -32,8 +32,8 @@ import ssl
|
||||
import sys
|
||||
from wsgiref.simple_server import make_server
|
||||
|
||||
from . import (VERSION, Application, RequestHandler, ThreadedHTTPServer,
|
||||
ThreadedHTTPSServer, config, log, storage)
|
||||
from radicale import (VERSION, Application, RequestHandler, ThreadedHTTPServer,
|
||||
ThreadedHTTPSServer, config, log, storage)
|
||||
|
||||
|
||||
def run():
|
||||
|
@ -28,7 +28,7 @@ import os
|
||||
from collections import OrderedDict
|
||||
from configparser import RawConfigParser as ConfigParser
|
||||
|
||||
from . import auth, rights, storage, web
|
||||
from radicale import auth, rights, storage, web
|
||||
|
||||
|
||||
def positive_int(value):
|
||||
|
@ -43,7 +43,7 @@ import posixpath
|
||||
import re
|
||||
from importlib import import_module
|
||||
|
||||
from . import storage
|
||||
from radicale import storage
|
||||
|
||||
INTERNAL_TYPES = ("None", "none", "authenticated", "owner_write", "owner_only",
|
||||
"from_file")
|
||||
|
@ -22,7 +22,7 @@ from importlib import import_module
|
||||
|
||||
import pkg_resources
|
||||
|
||||
from . import storage
|
||||
from radicale import storage
|
||||
|
||||
NOT_FOUND = (
|
||||
client.NOT_FOUND, (("Content-Type", "text/plain"),),
|
||||
|
@ -36,7 +36,7 @@ from http import client
|
||||
from itertools import chain
|
||||
from urllib.parse import quote, unquote, urlparse
|
||||
|
||||
from . import storage
|
||||
from radicale import storage
|
||||
|
||||
MIMETYPES = {
|
||||
"VADDRESSBOOK": "text/vcard",
|
||||
|
Loading…
Reference in New Issue
Block a user