mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
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 <jan@janware.com>
This commit is contained in:
parent
2f1265b7b2
commit
4f98fd6c78
3 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ if TYPE_CHECKING:
|
||||||
|
|
||||||
from .log import *
|
from .log import *
|
||||||
from .base import Input, InputMode, Result
|
from .base import Input, InputMode, Result
|
||||||
from .FileTransfer import FileTransfer as Base
|
from .FileContext import FileContext as Base
|
||||||
|
|
||||||
class ExecContext(Base):
|
class ExecContext(Base):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ if TYPE_CHECKING:
|
||||||
from .log import *
|
from .log import *
|
||||||
from .base import Input, InputMode, Result
|
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):
|
def __init__(self, uri: str, interactive: bool|None=None, verbose_default=False):
|
||||||
self.__uri = uri
|
self.__uri = uri
|
||||||
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from ..FileTransfer import FileTransfer as Base
|
from ..FileContext import FileContext as Base
|
||||||
from ..base import Result
|
from ..base import Result
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue