This commit is contained in:
Kovid Goyal 2017-04-30 09:00:45 +05:30
parent 54f320f30d
commit f53b7a8782
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -173,14 +173,14 @@ class DBCtx(object):
def path(self, path): def path(self, path):
if self.is_remote: if self.is_remote:
with lopen(path, 'rb') as f: with lopen(path, 'rb') as f:
return f.read() return path, f.read()
return path return path
def run(self, name, *args): def run(self, name, *args):
m = module_for_cmd(name) m = module_for_cmd(name)
if self.is_remote: if self.is_remote:
return self.remote_run(name, m, *args) return self.remote_run(name, m, *args)
return m.implementation(self.db, False, *args) return m.implementation(self.db, None, *args)
def interpret_http_error(self, err): def interpret_http_error(self, err):
if err.code == httplib.UNAUTHORIZED: if err.code == httplib.UNAUTHORIZED: