Software /
code /
prosody
Diff
util/xml.lua @ 6777:5de6b93d0190
util.*: Remove use of module() function, make all module functions local and return them in a table at the end
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Feb 2015 10:36:37 +0100 |
parent | 6669:7da8b6bc0966 |
child | 6978:30c96a5db360 |
line wrap: on
line diff
--- a/util/xml.lua Mon Aug 10 22:16:05 2015 +0200 +++ b/util/xml.lua Sat Feb 21 10:36:37 2015 +0100 @@ -2,7 +2,7 @@ local st = require "util.stanza"; local lxp = require "lxp"; -module("xml") +local _ENV = nil; local parse_xml = (function() local ns_prefixes = { @@ -54,5 +54,6 @@ end; end)(); -parse = parse_xml; -return _M; +return { + parse = parse_xml; +};