Skip to content

Commit

Permalink
Placate flake8 1 of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Mar 14, 2019
1 parent 2a10f53 commit ee7f1d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rubicon/objc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def __call__(self, receiver, *args, convert_args=True, convert_result=True):
if arg is None:
# allow for 'nil' block args, which some objc methods accept
arg = ns_from_py(arg)
elif (callable(arg) and
not isinstance(arg, Block)): # <-- guard against someone someday making Block callable
elif (callable(arg)
and not isinstance(arg, Block)): # <-- guard against someone someday making Block callable
# Note: We need to keep the temp. Block instance
# around at least until the objc method is called.
# _as_parameter_ is used in the actual ctypes marshalling below.
Expand All @@ -133,8 +133,8 @@ def __call__(self, receiver, *args, convert_args=True, convert_result=True):
except ArgumentError as error:
# Add more useful info to argument error exceptions, then reraise.
error.args = (
error.args[0] +
' (selector = {self.name}, argtypes = {self.argtypes}, encoding = {self.encoding})'
error.args[0]
+ ' (selector = {self.name}, argtypes = {self.argtypes}, encoding = {self.encoding})'
.format(self=self),
)
raise
Expand Down

0 comments on commit ee7f1d1

Please sign in to comment.