diff --git a/doc/implementation_notes.md b/doc/implementation_notes.md index 21e8dea..b763835 100644 --- a/doc/implementation_notes.md +++ b/doc/implementation_notes.md @@ -6,7 +6,7 @@ Lightweight cleaning mode Due to *popular* request, MAT2 is providing a *lightweight* cleaning mode, that only cleans the superficial metadata of your file, but not -the ones that might be in **embeded** resources. Like for example, +the ones that might be in **embedded** resources. Like for example, images in a PDF or an office document. Revisions handling diff --git a/libmat2/abstract.py b/libmat2/abstract.py index 52eeb50..cd72f2c 100644 --- a/libmat2/abstract.py +++ b/libmat2/abstract.py @@ -6,8 +6,8 @@ assert Set # make pyflakes happy class AbstractParser(abc.ABC): - """ This is the base classe of every parser. - It might yield `ValueError` on instanciation on invalid files. + """ This is the base class of every parser. + It might yield `ValueError` on instantiation on invalid files. """ meta_list = set() # type: Set[str] mimetypes = set() # type: Set[str] diff --git a/mat2 b/mat2 index 23792b4..dc316e9 100755 --- a/mat2 +++ b/mat2 @@ -68,7 +68,7 @@ def show_meta(filename: str): print(" %s: harmful content" % k) def clean_meta(params: Tuple[str, bool]) -> bool: - filename, is_lightweigth = params + filename, is_lightweight = params if not __check_file(filename, os.R_OK|os.W_OK): return False @@ -76,7 +76,7 @@ def clean_meta(params: Tuple[str, bool]) -> bool: if p is None: print("[-] %s's format (%s) is not supported" % (filename, mtype)) return False - if is_lightweigth: + if is_lightweight: return p.remove_all_lightweight() return p.remove_all()