Skip to content

Commit

Permalink
Update pylint exceptions to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnusb committed Oct 23, 2019
1 parent 1f45fba commit 7799ce4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pypureomapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def parse_chain(*args):
"""
items = []
for parser in args:
for element in parser(*items): # pylint:disable=star-args
for element in parser(*items):
if element is None:
yield None
else:
Expand Down Expand Up @@ -663,7 +663,7 @@ def parse_bindict(self):
True
"""
entries = []
try:
try: # pylint:disable=too-many-nested-blocks
while True:
for key in self.parse_net16string():
if key is None:
Expand All @@ -689,7 +689,7 @@ def parse_startup_message(self):
>>> d = b"\\0\\0\\0\\x64\\0\\0\\0\\x18"
>>> next(InBuffer(d).parse_startup_message()).validate()
"""
return parse_map(lambda args: OmapiStartupMessage(*args), parse_chain(self.parse_net32int, lambda _: self.parse_net32int())) # pylint:disable=star-args
return parse_map(lambda args: OmapiStartupMessage(*args), parse_chain(self.parse_net32int, lambda _: self.parse_net32int()))

def parse_message(self):
"""results in an OmapiMessage"""
Expand All @@ -703,7 +703,7 @@ def parse_message(self):
lambda *_: self.parse_bindict(), # object
lambda *args: self.parse_fixedbuffer(args[1])) # signature
return parse_map(lambda args: # skip authlen in args:
OmapiMessage(*(args[0:1] + args[2:])), parser) # pylint:disable=star-args
OmapiMessage(*(args[0:1] + args[2:])), parser)


if isinstance(bytes(b"x")[0], int):
Expand Down

0 comments on commit 7799ce4

Please sign in to comment.