Existing code gives up searching for a GnuPG executable (returning None -- contrary to the docstring indicating that a RuntimeError will be thrown in all cases where no binary can be found) if the first item found is a symlink or is not accessed via an absolute path. This refactored version moves the filtering logic down into the _which helper -- and thus continues to search past unacceptable results -- even if the first item found is not acceptable. |
||
---|---|---|
.. | ||
test | ||
__init__.py | ||
_ansistrm.py | ||
_logger.py | ||
_meta.py | ||
_parsers.py | ||
_trust.py | ||
_util.py | ||
_version.py | ||
copyleft.py | ||
gnupg.py |