Skip to content

Commit 9311e69

Browse files
committed
remove debuging print and comment
Signed-off-by: Marius Bertram <marius@brtrm.de>
1 parent 68b13b5 commit 9311e69

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

oras/auth/token.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def authenticate_request(
6565
return headers, False
6666

6767
# If we have a token, set auth header (base64 encoded user/pass)
68-
# Else if
6968
if self.token:
7069
headers["Authorization"] = "Bearer %s" % self.token
7170
return headers, True
@@ -160,7 +159,6 @@ def request_anonymous_token(self, h: auth_utils.authHeader) -> bool:
160159
# From https://docs.docker.com/registry/spec/auth/token/ section
161160
# We can get token OR access_token OR both (when both they are identical)
162161
data = response.json()
163-
print("data: %s" % data)
164162
token = data.get("token") or data.get("access_token")
165163

166164
# Update the headers but not self.token (expects Basic)

0 commit comments

Comments
 (0)