Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ocstyle/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def setupLines(content, maxLineLength):
return errors



class TranslateWithPosition(Translate):
"""Like Translate, but also passes position."""

Expand All @@ -73,6 +72,7 @@ def parse(self, text, position, endPosition, space):
translated = self.function(result.value, result.end)
else:
translated = self.function(result.value)

return match(result.end, translated, result.expected)


Expand Down Expand Up @@ -587,7 +587,7 @@ def shouldBeSemicolonAndNewline(result, pos):
return errors or None


@rule(methodSignature + shouldBeSemicolonAndNewline + codeBlock)
@rule(methodSignature + codeBlock)
def method(value):
"""A method."""
return stringsAndErrors(value)
Expand Down