[lua-torch-paths] 01/06: New upstream version 0~20170226-g4ebe222
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Fri Jul 28 09:19:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository lua-torch-paths.
commit e7f5016f1b82d7cd4e74d7857528ed96c619159e
Author: Zhou Mo <cdluminate at gmail.com>
Date: Fri Jul 28 09:06:43 2017 +0000
New upstream version 0~20170226-g4ebe222
---
init.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/init.lua b/init.lua
index c214055..863e28f 100644
--- a/init.lua
+++ b/init.lua
@@ -25,10 +25,10 @@ end
function paths.files(s, f)
local d = paths.dir(s)
local n = 0
- if torch.type(f) == 'string' then
+ if type(f) == 'string' then
local pattern = f
f = function(file) return file:find(pattern) end
- elseif f and torch.type(f) ~= 'function' then
+ elseif f and type(f) ~= 'function' then
error("Expecting optional arg 2 to be function or string. Got : "..torch.type(f))
end
f = f or function(file) return true end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-paths.git
More information about the debian-science-commits
mailing list