Skip to content

Commit

Permalink
fix: Make file_urls a private attribute to retain existing behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jan 31, 2022
1 parent f4ae3ae commit 179b79b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ocdsextensionregistry/extension_version.py
Expand Up @@ -25,7 +25,7 @@ def __init__(self, data, file_urls=None):
self.version = data['Version']
self.base_url = data['Base URL']
self.download_url = data['Download URL']
self.file_urls = file_urls or {}
self._file_urls = file_urls or {}
self._files = None
self._metadata = None
self._schemas = None
Expand Down Expand Up @@ -56,8 +56,8 @@ def get_url(self, basename):
"""
Returns the URL of the file within the extension.
"""
if basename in self.file_urls:
return self.file_urls[basename]
if basename in self._file_urls:
return self._file_urls[basename]
return ''.join([self.base_url, basename])

def remote(self, basename, default=None):
Expand Down

0 comments on commit 179b79b

Please sign in to comment.