Changeset

1593:d9f3c66ea938

mod_storage_gdbm: Use require directly instead of util.import (which is not available in prosodyctl, breaks adduser etc)
author Kim Alvefur <zash@zash.se>
date Sun, 25 Jan 2015 13:04:02 +0100
parents 1592:47fb4f36dacd
children 1594:620cc035ae1e
files mod_storage_gdbm/mod_storage_gdbm.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_gdbm/mod_storage_gdbm.lua	Tue Jan 20 11:02:14 2015 +0000
+++ b/mod_storage_gdbm/mod_storage_gdbm.lua	Sun Jan 25 13:04:02 2015 +0100
@@ -9,7 +9,9 @@
 local gdbm = require"gdbm";
 local path = require"util.paths";
 local lfs = require"lfs";
-local serialize, deserialize = import("util.serialization", "serialize", "deserialize");
+local serialization = require"util.serialization";
+local serialize = serialization.serialize;
+local deserialize = serialization.deserialize;
 
 local base_path = path.resolve_relative_path(prosody.paths.data, module.host);
 lfs.mkdir(base_path);