Skip to content

Commit aa84017

Browse files
anoopcs9mergify[bot]
authored andcommitted
samba_cmds: Modify execute() to accept CommandArgs
This is done in preparation to accept objects of CommandArgs class which is the parent class for SambaCommand. Signed-off-by: Anoop C S <[email protected]>
1 parent b6e1182 commit aa84017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sambacc/samba_cmds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,6 @@ def encode(value: typing.Union[str, bytes, None]) -> bytes:
209209
return value
210210

211211

212-
def execute(cmd: SambaCommand) -> None:
212+
def execute(cmd: CommandArgs) -> None:
213213
"""Exec into the command specified (without forking)."""
214214
os.execvp(cmd.name, cmd.argv()) # pragma: no cover

0 commit comments

Comments
 (0)