Skip to content

Fix/deepsource issues #952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Oct 29, 2019
Prev Previous commit
Next Next commit
silence PYL-W0621
  • Loading branch information
imkaka committed Oct 24, 2019
commit 225529c8baaa6ee65b1b23fc1d79b99bf49ebfb1
6 changes: 2 additions & 4 deletions git/refs/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,14 @@ def message(self):
"""Message describing the operation that acted on the reference"""
return self[4]

# skipcq: PYL-W0621
@classmethod
def new(cls, oldhexsha, newhexsha, actor, time, tz_offset, message):
def new(cls, oldhexsha, newhexsha, actor, time, tz_offset, message): # skipcq: PYL-W0621
""":return: New instance of a RefLogEntry"""
if not isinstance(actor, Actor):
raise ValueError("Need actor instance, got %s" % actor)
# END check types
return RefLogEntry((oldhexsha, newhexsha, actor, (time, tz_offset), message))

# skipcq: PYL-W0621
@classmethod
def from_line(cls, line):
""":return: New RefLogEntry instance from the given revlog line.
Expand Down Expand Up @@ -123,7 +121,7 @@ def from_line(cls, line):
# END handle missing end brace

actor = Actor._from_string(info[82:email_end + 1])
time, tz_offset = parse_date(info[email_end + 2:])
time, tz_offset = parse_date(info[email_end + 2:]) # skipcq: PYL-W0621

return RefLogEntry((oldhexsha, newhexsha, actor, (time, tz_offset), msg))

Expand Down