Skip to content

Commit 9f4dc40

Browse files
committed
prune comments
1 parent bebd055 commit 9f4dc40

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

netfoundry/utility.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import unicodedata # case insensitive compare in Utility
99
from dataclasses import dataclass, field
1010
from json import JSONDecodeError
11-
# from re import sub
1211
from stat import filemode
1312
from urllib.parse import urlparse
1413
from uuid import UUID # validate UUIDv4 strings
@@ -235,18 +234,11 @@ def is_uuidv4(string: str):
235234
return True
236235

237236

238-
# def eprint(*args, **kwargs):
239-
# """Adapt legacy function to logging."""
240-
# logging.debug(*args, **kwargs)
241-
242-
243237
def get_resource_type_by_url(url: str):
244238
"""Get the resource type definition from a resource URL."""
245239
url_parts = urlparse(url)
246240
url_path = url_parts.path
247241
resource_type = re.sub(r'/(core|rest|identity|auth|product-metadata)/v\d+/([^/]+)/?.*', r'\2', url_path)
248-
# if resource_type == "download-urls.json":
249-
# resource_type = "download-urls"
250242
if RESOURCES.get(resource_type):
251243
return RESOURCES.get(resource_type)
252244
else:

0 commit comments

Comments
 (0)