mirror of https://github.com/flaggo/pydu.git
change pydu import to relative import
This commit is contained in:
parent
ed8486e2a1
commit
f30b75092d
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import sys
|
||||
from pydu.platform import WINDOWS, POSIX
|
||||
|
||||
from .platform import WINDOWS, POSIX
|
||||
|
||||
|
||||
# http://bitbucket.org/techtonik/python-pager
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import os
|
||||
import sys
|
||||
import shutil
|
||||
from pydu.platform import WINDOWS
|
||||
|
||||
from .platform import WINDOWS
|
||||
|
||||
|
||||
# todo tests and docs
|
||||
|
|
|
@ -2,7 +2,7 @@ from __future__ import absolute_import
|
|||
|
||||
import inspect
|
||||
|
||||
from pydu.compat import PY2
|
||||
from .compat import PY2
|
||||
|
||||
|
||||
def getargspec(func):
|
||||
|
|
|
@ -3,7 +3,6 @@ import sys
|
|||
import linecache
|
||||
import signal
|
||||
import functools
|
||||
import warnings
|
||||
import io
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue