Skip to content

Commit f86ad1e

Browse files
committed
Resolved pylint errors
1 parent ba4ea2c commit f86ad1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

linode_api4/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def load_and_validate_keys(authorized_keys):
2727

2828
for k in authorized_keys:
2929
accepted_types = ('ssh-dss', 'ssh-rsa', 'ecdsa-sha2-nistp', 'ssh-ed25519')
30-
if any([ t for t in accepted_types if k.startswith(t) ]):
30+
if any([ t for t in accepted_types if k.startswith(t) ]): # pylint: disable=use-a-generator
3131
# this looks like a key, cool
3232
ret.append(k)
3333
else:

linode_api4/linode_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def user_create(self, email, username, restricted=True):
726726
}
727727
result = self.client.post('/account/users', data=params)
728728

729-
if not 'email' and 'restricted' and 'username' in result:
729+
if not all([c in result for c in ('email', 'restricted', 'username')]):
730730
raise UnexpectedResponseError('Unexpected response when creating user!', json=result)
731731

732732
u = User(self.client, result['username'], result)

0 commit comments

Comments
 (0)