Browse Source

Remove all relative imports

tags/nilmdb-1.0
Jim Paris 9 years ago
parent
commit
e6180a5a81
4 changed files with 13 additions and 14 deletions
  1. +2
    -2
      nilmdb/client/__init__.py
  2. +1
    -1
      nilmdb/cmdline/__init__.py
  3. +1
    -2
      nilmdb/cmdline/cmdline.py
  4. +9
    -9
      nilmdb/utils/__init__.py

+ 2
- 2
nilmdb/client/__init__.py View File

@@ -1,4 +1,4 @@
"""nilmdb.client"""

from .client import Client
from .errors import ClientError, ServerError, Error
from nilmdb.client.client import Client
from nilmdb.client.errors import ClientError, ServerError, Error

+ 1
- 1
nilmdb/cmdline/__init__.py View File

@@ -1,3 +1,3 @@
"""nilmdb.cmdline"""

from .cmdline import Cmdline
from nilmdb.cmdline.cmdline import Cmdline

+ 1
- 2
nilmdb/cmdline/cmdline.py View File

@@ -16,8 +16,7 @@ version = "1.0"
subcommands = [ "info", "create", "list", "metadata", "insert", "extract",
"remove", "destroy" ]

# Import the subcommand modules. Equivalent way of doing this would be
# from . import info as cmd_info
# Import the subcommand modules
subcmd_mods = {}
for cmd in subcommands:
subcmd_mods[cmd] = __import__("nilmdb.cmdline." + cmd, fromlist = [ cmd ])


+ 9
- 9
nilmdb/utils/__init__.py View File

@@ -1,11 +1,11 @@
"""NilmDB utilities"""

from .timer import Timer
from .iteratorizer import Iteratorizer
from .serializer import Serializer
from .lrucache import lru_cache
from .diskusage import du
from .mustclose import must_close
from .urllib import urlencode
from . import misc
from . import atomic
from nilmdb.utils.timer import Timer
from nilmdb.utils.iteratorizer import Iteratorizer
from nilmdb.utils.serializer import Serializer
from nilmdb.utils.lrucache import lru_cache
from nilmdb.utils.diskusage import du
from nilmdb.utils.mustclose import must_close
from nilmdb.utils.urllib import urlencode
from nilmdb.utils import misc
from nilmdb.utils import atomic

Loading…
Cancel
Save