1
0
mirror of synced 2024-06-09 15:57:48 +02:00

mat2: do not check the input file for W_OK

Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
This commit is contained in:
Antoine Tenart 2019-03-26 18:08:03 +01:00
parent 51ff89c512
commit b4b150a4f5

2
mat2
View File

@ -100,7 +100,7 @@ def __print_meta(filename: str, metadata: dict, depth: int = 1):
def clean_meta(filename: str, is_lightweight: bool, policy: UnknownMemberPolicy) -> bool: def clean_meta(filename: str, is_lightweight: bool, policy: UnknownMemberPolicy) -> bool:
if not __check_file(filename, os.R_OK|os.W_OK): if not __check_file(filename, os.R_OK):
return False return False
p, mtype = parser_factory.get_parser(filename) # type: ignore p, mtype = parser_factory.get_parser(filename) # type: ignore