diff --git a/pydu/archive.py b/pydu/archive.py index ec825ec..0b3ab92 100644 --- a/pydu/archive.py +++ b/pydu/archive.py @@ -23,8 +23,8 @@ import stat import tarfile import zipfile -from pydu import logger -from pydu.compat import string_types +from . import logger +from .compat import string_types class ArchiveException(Exception): diff --git a/pydu/cmd.py b/pydu/cmd.py index 09880f0..195ab46 100644 --- a/pydu/cmd.py +++ b/pydu/cmd.py @@ -1,8 +1,9 @@ import sys import time from subprocess import Popen, PIPE, STDOUT -from pydu.platform import WINDOWS -from pydu.compat import PY2 + +from .platform import WINDOWS +from .compat import PY2 def run(cmd, wait=True, shell=True, timeout=0, timeinterval=1): diff --git a/pydu/console.py b/pydu/console.py index 937c94c..30ea446 100644 --- a/pydu/console.py +++ b/pydu/console.py @@ -1,5 +1,6 @@ import sys -from pydu.platform import WINDOWS, POSIX + +from .platform import WINDOWS, POSIX # http://bitbucket.org/techtonik/python-pager diff --git a/pydu/file.py b/pydu/file.py index 6dc8eca..588c20d 100644 --- a/pydu/file.py +++ b/pydu/file.py @@ -1,7 +1,8 @@ import os import sys import shutil -from pydu.platform import WINDOWS + +from .platform import WINDOWS # todo tests and docs diff --git a/pydu/inspect.py b/pydu/inspect.py index 27437cd..6c66287 100644 --- a/pydu/inspect.py +++ b/pydu/inspect.py @@ -2,7 +2,7 @@ from __future__ import absolute_import import inspect -from pydu.compat import PY2 +from .compat import PY2 def getargspec(func): diff --git a/pydu/misc.py b/pydu/misc.py index e8a377b..99db8b8 100644 --- a/pydu/misc.py +++ b/pydu/misc.py @@ -3,7 +3,6 @@ import sys import linecache import signal import functools -import warnings import io diff --git a/pydu/request.py b/pydu/request.py index dbd2b8d..e2e552a 100644 --- a/pydu/request.py +++ b/pydu/request.py @@ -3,9 +3,9 @@ import shutil import tempfile import socket -from pydu import logger -from pydu.compat import PY2, string_types, urlparse, urlib -from pydu.string import safeunicode +from . import logger +from .string import safeunicode +from .compat import PY2, string_types, urlparse, urlib class FileName(object): diff --git a/pydu/string.py b/pydu/string.py index fbf530f..ff74984 100644 --- a/pydu/string.py +++ b/pydu/string.py @@ -1,5 +1,5 @@ # coding: utf-8 -from pydu.compat import PY2, text_type, imap, has_next_attr +from .compat import text_type def safeunicode(obj, encoding='utf-8'):