test_tools.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:spiderfoot 作者: ParrotSec 项目源码 文件源码
def is_pep8_available():
  """
  Checks if pep8 is availalbe.

  :returns: **True** if we can use pep8 and **False** otherwise
  """

  try:
    import pep8

    if not hasattr(pep8, 'BaseReport'):
      raise ImportError()

    return True
  except ImportError:
    return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号