Commit 3e2890eb authored by dkg's avatar dkg Committed by jvoisin

three minor spelling fixes

parent 91e80527
......@@ -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
......
......@@ -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]
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment