aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-22 17:37:55 +0100
committerKim Alvefur <zash@zash.se>2016-02-22 17:37:55 +0100
commit792b0e8d798c02f811d2dc0428a3babcd80f558f (patch)
tree9295f2262e0d713fb084a75ee41f6b9c5a103691
parent847ba75e55404bc8d386e1edf80699c921520aca (diff)
downloadprosody-792b0e8d798c02f811d2dc0428a3babcd80f558f.tar.gz
prosody-792b0e8d798c02f811d2dc0428a3babcd80f558f.zip
util.import: Localize unpack() in Lua 5.2 compatible way
-rw-r--r--util/import.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/import.lua b/util/import.lua
index 174da0ca..c2b9dce1 100644
--- a/util/import.lua
+++ b/util/import.lua
@@ -8,6 +8,7 @@
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local t_insert = table.insert;
function import(module, ...)
local m = package.loaded[module] or require(module);