From 07326839b959683fd22cd08472df0edff87fa3c8 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 28 Apr 2016 15:01:18 +0200 Subject: [PATCH] fixed bug: return PathNotFoundException from xglob as 3rd arg as docu says --- oletools/thirdparty/xglob/xglob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/thirdparty/xglob/xglob.py b/oletools/thirdparty/xglob/xglob.py index 0e7c3da..07e5d0c 100644 --- a/oletools/thirdparty/xglob/xglob.py +++ b/oletools/thirdparty/xglob/xglob.py @@ -144,7 +144,7 @@ def iter_files(files, recursive=False, zip_password=None, zip_fname='*'): iglob = glob.iglob for filespec in files: if not is_glob(filespec) and not os.path.exists(filespec): - yield None, PathNotFoundException(filespec), None + yield None, filespec, PathNotFoundException(filespec) for filename in iglob(filespec): if zip_password is not None: # Each file is expected to be a zip archive: -- libgit2 0.21.4