@@ -408,7 +408,7 @@ def _initialize_oss_fs(self) -> FileSystem:
408408 "access_key" : get_first_property_value (self .properties , S3_ACCESS_KEY_ID , AWS_ACCESS_KEY_ID ),
409409 "secret_key" : get_first_property_value (self .properties , S3_SECRET_ACCESS_KEY , AWS_SECRET_ACCESS_KEY ),
410410 "session_token" : get_first_property_value (self .properties , S3_SESSION_TOKEN , AWS_SESSION_TOKEN ),
411- "force_virtual_addressing" : property_as_bool (self .properties , S3_FORCE_VIRTUAL_ADDRESSING , True )
411+ "force_virtual_addressing" : property_as_bool (self .properties , S3_FORCE_VIRTUAL_ADDRESSING , True ),
412412 }
413413
414414 if proxy_uri := self .properties .get (S3_PROXY_URI ):
@@ -469,7 +469,7 @@ def _initialize_s3_fs(self, netloc: Optional[str]) -> FileSystem:
469469 if session_name := get_first_property_value (self .properties , S3_ROLE_SESSION_NAME , AWS_ROLE_SESSION_NAME ):
470470 client_kwargs ["session_name" ] = session_name
471471
472- if self .properties .get (S3_FORCE_VIRTUAL_ADDRESSING ) != None :
472+ if self .properties .get (S3_FORCE_VIRTUAL_ADDRESSING ) is not None :
473473 client_kwargs ["force_virtual_addressing" ] = property_as_bool (self .properties , S3_FORCE_VIRTUAL_ADDRESSING , False )
474474
475475 return S3FileSystem (** client_kwargs )
0 commit comments