Changed unpack in portable way

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Arvydas Sidorenko 2012-06-15 10:49:33 +02:00 committed by Uli Schlachter
parent ecc930dbe0
commit 9623b8e42f
3 changed files with 2 additions and 3 deletions

View File

@ -10,8 +10,8 @@ local loadstring = loadstring
local tostring = tostring
local ipairs = ipairs
local table = table
local unpack = unpack or table.unpack -- v5.1: unpack, v5.2: table.unpack
local dbus = dbus
local unpack = unpack
local type = type
--- Remote control module allowing usage of awesome-client.

View File

@ -7,8 +7,8 @@
local setmetatable = setmetatable
local string = string
local table = table
local unpack = unpack or table.unpack -- v5.1: unpack, v5.2: table.unpack
local tonumber = tonumber
local unpack = unpack
local ipairs = ipairs
local pairs = pairs
local type = type

View File

@ -12,7 +12,6 @@ local cairo = lgi.cairo
local Pango = lgi.Pango
local PangoCairo = lgi.PangoCairo
local type = type
local unpack = unpack
local setmetatable = setmetatable
local pairs = pairs
local error = error