diff --git a/python/samba/functional_level.py b/python/samba/functional_level.py index 3746516b49b..e5ccf3988fb 100644 --- a/python/samba/functional_level.py +++ b/python/samba/functional_level.py @@ -71,7 +71,7 @@ def dc_level_from_lp(lp): if smb_conf_dc_functional_level is None: # This shouldn't be possible, except if the default option # value is not in the loadparm enum table - raise RuntimeError(f"'ad dc functional level' in smb.conf unrecognised!") + raise RuntimeError("'ad dc functional level' in smb.conf unrecognised!") try: return string_to_level(smb_conf_dc_functional_level) diff --git a/python/samba/netcmd/delegation.py b/python/samba/netcmd/delegation.py index 35a91aca458..840be2088a3 100644 --- a/python/samba/netcmd/delegation.py +++ b/python/samba/netcmd/delegation.py @@ -128,8 +128,8 @@ class cmd_delegation_show(Command): if not ignore: if first: - self.outf.write(f' Principals that may delegate to this ' - f'account:\n') + self.outf.write(' Principals that may delegate to this ' + 'account:\n') first = False self.outf.write(f'msDS-AllowedToActOnBehalfOfOtherIdentity: '