From 4f98fd6c78157e0654cb9e44274531690ff57259 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 17 Apr 2026 09:26:42 +0200 Subject: [PATCH] lib.FileTransfer: Rename to FileContext Rename class FileTransfer to FileContext because that's the better name. It's the base class of ExecContext and also a context. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/lib/ExecContext.py | 2 +- src/python/jw/pkg/lib/{FileTransfer.py => FileContext.py} | 2 +- src/python/jw/pkg/lib/ec/Curl.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/python/jw/pkg/lib/{FileTransfer.py => FileContext.py} (99%) diff --git a/src/python/jw/pkg/lib/ExecContext.py b/src/python/jw/pkg/lib/ExecContext.py index eb4321e3..5d9d487e 100644 --- a/src/python/jw/pkg/lib/ExecContext.py +++ b/src/python/jw/pkg/lib/ExecContext.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: from .log import * from .base import Input, InputMode, Result -from .FileTransfer import FileTransfer as Base +from .FileContext import FileContext as Base class ExecContext(Base): diff --git a/src/python/jw/pkg/lib/FileTransfer.py b/src/python/jw/pkg/lib/FileContext.py similarity index 99% rename from src/python/jw/pkg/lib/FileTransfer.py rename to src/python/jw/pkg/lib/FileContext.py index ee239498..770edc51 100644 --- a/src/python/jw/pkg/lib/FileTransfer.py +++ b/src/python/jw/pkg/lib/FileContext.py @@ -11,7 +11,7 @@ if TYPE_CHECKING: from .log import * from .base import Input, InputMode, Result -class FileTransfer(abc.ABC): +class FileContext(abc.ABC): def __init__(self, uri: str, interactive: bool|None=None, verbose_default=False): self.__uri = uri diff --git a/src/python/jw/pkg/lib/ec/Curl.py b/src/python/jw/pkg/lib/ec/Curl.py index a4f76593..0909bf68 100644 --- a/src/python/jw/pkg/lib/ec/Curl.py +++ b/src/python/jw/pkg/lib/ec/Curl.py @@ -5,7 +5,7 @@ from __future__ import annotations from typing import TYPE_CHECKING from urllib.parse import urlparse -from ..FileTransfer import FileTransfer as Base +from ..FileContext import FileContext as Base from ..base import Result if TYPE_CHECKING: