summary refs log tree commit diff stats
path: root/ganarchy
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2024-03-17 11:42:17 -0300
committerSoniEx2 <endermoneymod@gmail.com>2024-03-17 11:42:17 -0300
commitb781f38accaeea8a4aa15c8bf17393f0c69d0d0c (patch)
treebd54fcb866b82ef1b4edd5fa448ff2d778f50b20 /ganarchy
parent2a344c63c4145c2c96ac2096dcf02d64694a3dc8 (diff)
Rename more URL -> URI HEAD ganarchy
Diffstat (limited to 'ganarchy')
-rw-r--r--ganarchy/cli/debug.py6
-rw-r--r--ganarchy/core.py2
-rw-r--r--ganarchy/data.py6
3 files changed, 7 insertions, 7 deletions
diff --git a/ganarchy/cli/debug.py b/ganarchy/cli/debug.py
index e44d235..1d63c62 100644
--- a/ganarchy/cli/debug.py
+++ b/ganarchy/cli/debug.py
@@ -40,12 +40,12 @@ def print_data_source(data_source):
             title = None
         click.echo("\tTitle: {}".format(title))
 
-    if ganarchy.data.DataProperty.INSTANCE_BASE_URL in data_source.get_supported_properties():
+    if ganarchy.data.DataProperty.INSTANCE_BASE_URI in data_source.get_supported_properties():
         try:
-            base_url = data_source.get_property_value(ganarchy.data.DataProperty.INSTANCE_BASE_URL)
+            base_url = data_source.get_property_value(ganarchy.data.DataProperty.INSTANCE_BASE_URI)
         except LookupError:
             base_url = None
-        click.echo("\tBase URL: {}".format(base_url))
+        click.echo("\tBase URI: {}".format(base_url))
 
     if ganarchy.data.DataProperty.REPO_LIST_SOURCES in data_source.get_supported_properties():
         click.echo("\tRepo list sources:")
diff --git a/ganarchy/core.py b/ganarchy/core.py
index d882a57..62e9976 100644
--- a/ganarchy/core.py
+++ b/ganarchy/core.py
@@ -262,7 +262,7 @@ class GAnarchy:
         """
         try:
             base_url = self._config.get_property_value(
-                ganarchy.data.DataProperty.INSTANCE_BASE_URL
+                ganarchy.data.DataProperty.INSTANCE_BASE_URI
             )
         except LookupError:
             # FIXME use a more appropriate error type
diff --git a/ganarchy/data.py b/ganarchy/data.py
index c803b9b..4d675cb 100644
--- a/ganarchy/data.py
+++ b/ganarchy/data.py
@@ -53,7 +53,7 @@ def _is_uri(obj, ports=range(1,65536), schemes=('https',)):
         # also raises for invalid ports, see
         # https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse
         # "Reading the port attribute will raise a ValueError if an
-        # invalid port is specified in the URL. [...]"
+        # invalid port is specified in the URI. [...]"
         if u.port is not None and u.port not in ports:
             return False
         if u.scheme not in schemes:
@@ -164,7 +164,7 @@ class DataProperty(Enum):
     DataSource get_property_values for more details.
     """
     INSTANCE_TITLE = (1, str)
-    INSTANCE_BASE_URL = (2, str)
+    INSTANCE_BASE_URI = (2, str)
     VCS_REPOS = (3, PCTP)
     REPO_LIST_SOURCES = (4, RepoListSource)
     INSTANCE_FEDITO = (5, int)
@@ -325,7 +325,7 @@ class ObjectDataSource(DataSource):
 
     _SUPPORTED_PROPERTIES = {
         DataProperty.INSTANCE_TITLE: _get_instance_title,
-        DataProperty.INSTANCE_BASE_URL: _get_instance_base_uri,
+        DataProperty.INSTANCE_BASE_URI: _get_instance_base_uri,
         DataProperty.INSTANCE_FEDITO: _get_instance_fedito,
         DataProperty.VCS_REPOS: _get_vcs_repos,
         DataProperty.REPO_LIST_SOURCES: _get_repo_list_sources,