change pydu import to relative import

This commit is contained in:
Prodesire 2017-12-08 23:28:26 +08:00
parent ed8486e2a1
commit f30b75092d
8 changed files with 14 additions and 12 deletions

View File

@ -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):

View File

@ -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):

View File

@ -1,5 +1,6 @@
import sys
from pydu.platform import WINDOWS, POSIX
from .platform import WINDOWS, POSIX
# http://bitbucket.org/techtonik/python-pager

View File

@ -1,7 +1,8 @@
import os
import sys
import shutil
from pydu.platform import WINDOWS
from .platform import WINDOWS
# todo tests and docs

View File

@ -2,7 +2,7 @@ from __future__ import absolute_import
import inspect
from pydu.compat import PY2
from .compat import PY2
def getargspec(func):

View File

@ -3,7 +3,6 @@ import sys
import linecache
import signal
import functools
import warnings
import io

View File

@ -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):

View File

@ -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'):