From 9e767bb69336719eac06e002fa8c28c1ba463ca5 Mon Sep 17 00:00:00 2001 From: Chris Battisto <34325676+battistowx@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:49:54 -0500 Subject: [PATCH] Fix formatting --- earthaccess/auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/earthaccess/auth.py b/earthaccess/auth.py index 50b85e24..3f1cba28 100644 --- a/earthaccess/auth.py +++ b/earthaccess/auth.py @@ -379,16 +379,16 @@ def _persist_user_credentials(self, username: str, password: str) -> bool: # Create and write to .dodsrc file dodsrc_path = Path.home() / ".dodsrc" if not dodsrc_path.exists(): - dodsrc_contents = f"HTTP.COOKIEJAR={urs_cookies_path}\nHTTP.NETRC={netrc_path}" + dodsrc_contents = ( + f"HTTP.COOKIEJAR={urs_cookies_path}\nHTTP.NETRC={netrc_path}" + ) dodsrc_path.write_text(dodsrc_contents) - if platform.system() == "Windows": local_dodsrc_path = Path.cwd() / dodsrc_path.name if not local_dodsrc_path.exists(): shutil.copy2(dodsrc_path, local_dodsrc_path) - return True def _get_cloud_auth_url(