Skip to content

Commit

Permalink
remove h5serv ref from httpconn.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed May 15, 2024
1 parent 86cc2e1 commit 024c8de
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions h5pyd/_hl/httpconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright by The HDF Group. #
# All rights reserved. #
# #
# This file is part of H5Serv (HDF5 REST Server) Service, Libraries and #
# This file is part of HSDS (HDF5 REST Server) Service, Libraries and #
# Utilities. The full HDF5 REST Server copyright notice, including #
# terms governing use, modification, and redistribution, is contained in #
# the file COPYING, which can be found at the root of the source code #
Expand Down Expand Up @@ -200,8 +200,6 @@ def __init__(
if endpoint is None:
if "HS_ENDPOINT" in os.environ:
endpoint = os.environ["HS_ENDPOINT"]
elif "H5SERV_ENDPOINT" in os.environ:
endpoint = os.environ["H5SERV_ENDPOINT"]

if not endpoint:
msg = "no endpoint set"
Expand Down Expand Up @@ -265,17 +263,13 @@ def __init__(
if username is None:
if "HS_USERNAME" in os.environ:
username = os.environ["HS_USERNAME"]
elif "H5SERV_USERNAME" in os.environ:
username = os.environ["H5SERV_USERNAME"]
if isinstance(username, str) and (not username or username.upper() == "NONE"):
username = None
self._username = username

if password is None:
if "HS_PASSWORD" in os.environ:
password = os.environ["HS_PASSWORD"]
elif "H5SERV_PASSWORD" in os.environ:
password = os.environ["H5SERV_PASSWORD"]
if isinstance(password, str) and (not password or password.upper() == "NONE"):
password = None
self._password = password
Expand Down

0 comments on commit 024c8de

Please sign in to comment.