Skip to content

Commit

Permalink
Be sure to work with both versions of pydocstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Nnonexistent committed Oct 1, 2016
1 parent 87fdd76 commit d42dc91
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.checker 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 d42dc91

Please sign in to comment.