Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Fix newline exception #336

Merged
merged 5 commits into from Oct 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/release_notes.rst
Expand Up @@ -24,6 +24,8 @@ Bug Fixes

* Fixed a false-positive recognition of section names causing D405 to be
reported (#311, #317).
* Fixed a bug where functions that don't end with a newline will sometimes raise
an exception (#321, #336).


2.1.1 - October 9th, 2017
Expand Down
5 changes: 2 additions & 3 deletions src/pydocstyle/parser.py
Expand Up @@ -564,9 +564,8 @@ def parse_definition(self, class_):
skipped_error_codes)
for child in definition.children:
child.parent = definition
self.log.debug("finished parsing %s '%s'. Next token is %r (%s)",
class_.__name__, name, self.current.kind,
self.current.value)
self.log.debug("finished parsing %s '%s'. Next token is %r",
class_.__name__, name, self.current)
return definition

def parse_skip_comment(self):
Expand Down