Skip to content

Commit

Permalink
Docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Nov 16, 2023
1 parent f186096 commit 46814f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions earthaccess/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@


def _normalize_location(location: Union[str, None]) -> Union[str, None]:
"""Handle user-provided `daac` and `provider` values
These values must have a capital letter as the first character
followed by capital letters, numbers, or an underscore. Here we
uppercase all strings to handle the case when users provide
lowercase values (e.g. "pocloud" instead of "POCLOUD").
"""
if location is not None:
location = location.upper()
return location
Expand Down

0 comments on commit 46814f7

Please sign in to comment.