# HG changeset patch # User Kim Alvefur # Date 1511466921 -3600 # Node ID e88db5668cfb8e38ca7c5ec3cffaee9c66ef1b92 # Parent bc9cb23b604a4ab1a3bb6123025c644444e1457e util.format: Import unpack from table lib in Lua 5.2+ diff -r bc9cb23b604a -r e88db5668cfb util/format.lua --- a/util/format.lua Thu Nov 23 20:51:38 2017 +0100 +++ b/util/format.lua Thu Nov 23 20:55:21 2017 +0100 @@ -4,7 +4,7 @@ local tostring = tostring; local select = select; -local unpack = unpack; +local unpack = table.unpack or unpack; -- luacheck: ignore 113/unpack local type = type; local function format(formatstring, ...)