Skip to content

Commit 85164a1

Browse files
author
Mathieu
committed
shotgun: replace list comprehension with all
1 parent 3221720 commit 85164a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shotgun_api3/shotgun.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,7 @@ def __init__(self,
598598
if script_name is not None or api_key is not None:
599599
raise ValueError("cannot provide an auth_code with script_name/api_key")
600600

601-
# Can't use 'all' with python 2.4
602-
if len([x for x in [session_token, script_name, api_key, login, password] if x]) == 0:
601+
if all([session_token, script_name, api_key, login, password]):
603602
if connect:
604603
raise ValueError("must provide login/password, session_token or script_name/api_key")
605604

0 commit comments

Comments
 (0)