Skip to content

Commit

Permalink
Merge pull request #191 from Nnonexistent/pydocstyle_import_fix
Browse files Browse the repository at this point in the history
Fix import to match pydocstyle v.1.1.0
  • Loading branch information
carlio authored May 2, 2017
2 parents 4b9aabf + d42dc91 commit 394859d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prospector/tools/pep257/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ def dummy_log(*args, **kwargs): # noqa
pass
pydocstyle.log.debug = dummy_log

from pydocstyle import PEP257Checker, AllError
try:
from pydocstyle.checker import PEP257Checker, AllError # pydocstyle >= 1.1.0
except ImportError:
from pydocstyle import PEP257Checker, AllError # pydocstyle <= 1.1.0

from prospector.message import Location, Message, make_tool_error_message
from prospector.tools.base import ToolBase

Expand Down

0 comments on commit 394859d

Please sign in to comment.