Flagged by PyCharm.
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGc8a51a90929b: fsmonitor: drop an unused local variable assignment
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit |
hg-reviewers |
Flagged by PyCharm.
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/fsmonitor/pywatchman/pybser.py (1 line) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
189703000c2a | 13626ac95df3 | Matt Harbison | Dec 27 2019, 6:34 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 |
else: | else: | ||||
raise ValueError( | raise ValueError( | ||||
"unhandled bser opcode 0x%s" | "unhandled bser opcode 0x%s" | ||||
% binascii.hexlify(val_type).decode("ascii") | % binascii.hexlify(val_type).decode("ascii") | ||||
) | ) | ||||
def _pdu_info_helper(buf): | def _pdu_info_helper(buf): | ||||
bser_version = -1 | |||||
if buf[0:2] == EMPTY_HEADER[0:2]: | if buf[0:2] == EMPTY_HEADER[0:2]: | ||||
bser_version = 1 | bser_version = 1 | ||||
bser_capabilities = 0 | bser_capabilities = 0 | ||||
expected_len, pos2 = Bunser.unser_int(buf, 2) | expected_len, pos2 = Bunser.unser_int(buf, 2) | ||||
elif buf[0:2] == EMPTY_HEADER_V2[0:2]: | elif buf[0:2] == EMPTY_HEADER_V2[0:2]: | ||||
if len(buf) < 8: | if len(buf) < 8: | ||||
raise ValueError("Invalid BSER header") | raise ValueError("Invalid BSER header") | ||||
bser_version = 2 | bser_version = 2 |