@@ -461,7 +461,7 @@ def __init__(self,
461461
462462 # When using auth_token in a 2FA scenario we need to switch to session-based
463463 # authentication because the auth token will no longer be valid after a first use.
464- if self .config .auth_token != None :
464+ if self .config .auth_token is not None :
465465 self .config .session_token = self .get_session_token ()
466466 self .config .user_login = None
467467 self .config .user_password = None
@@ -701,7 +701,7 @@ def summarize(self,
701701 based on the given filters.
702702 """
703703
704- if not isinstance (grouping , list ) and grouping != None :
704+ if not isinstance (grouping , list ) and grouping is not None :
705705 msg = "summarize() 'grouping' parameter must be a list or None"
706706 raise ValueError (msg )
707707
@@ -721,7 +721,7 @@ def summarize(self,
721721 # Defaults to True on the server, so only pass it if it's False
722722 params ["include_archived_projects" ] = False
723723
724- if grouping != None :
724+ if grouping is not None :
725725 params ['grouping' ] = grouping
726726
727727 records = self ._call_rpc ('summarize' , params )
@@ -1913,7 +1913,7 @@ def _response_errors(self, sg_response):
19131913 """
19141914
19151915 ERR_AUTH = 102 # error code for authentication related problems
1916- ERR_2FA = 106 # error code when 2FA authentication is required but no 23FA token provided.
1916+ ERR_2FA = 106 # error code when 2FA authentication is required but no 2FA token provided.
19171917
19181918 if isinstance (sg_response , dict ) and sg_response .get ("exception" ):
19191919 if sg_response .get ("error_code" ) == ERR_AUTH :
@@ -1956,7 +1956,7 @@ def _transform_outbound(self, data):
19561956
19571957 if self .config .convert_datetimes_to_utc :
19581958 def _change_tz (value ):
1959- if value .tzinfo == None :
1959+ if value .tzinfo is None :
19601960 value = value .replace (tzinfo = SG_TIMEZONE .local )
19611961 return value .astimezone (SG_TIMEZONE .utc )
19621962 else :
0 commit comments