From 50d3d01ea39ce4ebd6992932dd1ac44ff236a563 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Sun, 14 Jan 2018 18:33:01 +0100 Subject: [PATCH] Uses absoulte imports as recommended in PEP-8 --- radicale/__init__.py | 2 +- radicale/__main__.py | 4 ++-- radicale/config.py | 2 +- radicale/rights.py | 2 +- radicale/web.py | 2 +- radicale/xmlutils.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index ca25417..82c2ea9 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -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 diff --git a/radicale/__main__.py b/radicale/__main__.py index 3e133c7..510078d 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -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(): diff --git a/radicale/config.py b/radicale/config.py index 7a6fa6b..eb3a38e 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -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): diff --git a/radicale/rights.py b/radicale/rights.py index 76f4ad3..4e1e69a 100644 --- a/radicale/rights.py +++ b/radicale/rights.py @@ -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") diff --git a/radicale/web.py b/radicale/web.py index acc7ce7..9f8660c 100644 --- a/radicale/web.py +++ b/radicale/web.py @@ -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"),), diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index b096bcd..c2e20fa 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -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",