Closed utkonos closed 5 years ago
Python 3.7.2 and yara-python 3.8.1
I haven’t used pathlib much but I’m pretty sure there’s a way to convert it to a string. I don’t see any value in supporting this. Strings are universal.
Oops, hit the button too early. The added complexity here isn’t worth the benefit. Just convert it to a string when you pass it in.
Fair enough. I have been using pathlib everywhere in my code since the standard modules all began supporting it. Now I notice when 3rd party modules don't support it. Converting it to a string is fine.
When using a pathlib object for the file location, the
match
method throws an exception: