relative import fix

This commit is contained in:
superqwer 2015-04-06 15:58:42 +03:00
parent 42b73198b7
commit bd761ec197
2 changed files with 3 additions and 3 deletions

View file

@ -8,11 +8,11 @@ class Client(object):
def __init__(self, hostname="127.0.0.1", port="11211", expiry=900):
if hostname and port:
import memcache_client
from . import memcache_client
self.cache = memcache_client.Client(hostname, port, expiry)
import db_client
from . import db_client
self.db = db_client.Client()

View file

@ -78,7 +78,7 @@ def is_valid_id(val):
if ENABLE_MULTI_PROCESS_SUPPORT:
from memcache_wrapped_db_client import Client
from .memcache_wrapped_db_client import Client
remote_server = Client(MEMCACHE_HOST, binary_type(MEMCACHE_PORT), MEMCACHE_TTL)