From 8e35a983bf24f6f90df4630b2b55409f0ca1d213 Mon Sep 17 00:00:00 2001 From: Arvydas Sidorenko Date: Fri, 15 Jun 2012 20:48:17 +0200 Subject: Ported vicious.contrib to lua 5.2 Signed-off-by: Arvydas Sidorenko Signed-off-by: Adrian C. (anrxc) --- contrib/batpmu.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/batpmu.lua') diff --git a/contrib/batpmu.lua b/contrib/batpmu.lua index e84295e..8c73d93 100644 --- a/contrib/batpmu.lua +++ b/contrib/batpmu.lua @@ -20,7 +20,8 @@ local string = { -- Batpmu: provides state, charge and remaining time for a requested battery using PMU -module("vicious.contrib.batpmu") +-- vicious.contrib.batpmu +local batpmu = {} -- {{{ Battery widget type @@ -75,4 +76,4 @@ local function worker(format, batid) end -- }}} -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +return setmetatable(batpmu, { __call = function(_, ...) return worker(...) end }) -- cgit v1.2.3