diff options
author | Kim Alvefur <zash@zash.se> | 2023-03-17 16:23:16 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-03-17 16:23:16 +0100 |
commit | 43531740f99da82f023bee26d954fc71bde94635 (patch) | |
tree | 558068f570448be5d36fc90cd52b530e33c7c324 /util/json.lua | |
parent | 869581384d74b506b026c70584a7338e7f1399cb (diff) | |
download | prosody-43531740f99da82f023bee26d954fc71bde94635.tar.gz prosody-43531740f99da82f023bee26d954fc71bde94635.zip |
util: Prefix module imports with prosody namespace
Diffstat (limited to 'util/json.lua')
-rw-r--r-- | util/json.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/json.lua b/util/json.lua index e6704b7e..369b9762 100644 --- a/util/json.lua +++ b/util/json.lua @@ -10,12 +10,12 @@ local type = type; local t_insert, t_concat, t_remove = table.insert, table.concat, table.remove; local s_char = string.char; local tostring, tonumber = tostring, tonumber; -local pairs, ipairs, spairs = pairs, ipairs, require "util.iterators".sorted_pairs; +local pairs, ipairs, spairs = pairs, ipairs, require "prosody.util.iterators".sorted_pairs; local next = next; local getmetatable, setmetatable = getmetatable, setmetatable; local print = print; -local has_array, array = pcall(require, "util.array"); +local has_array, array = pcall(require, "prosody.util.array"); local array_mt = has_array and getmetatable(array()) or {}; --module("json") |