]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python: Remove unnecessary f‐strings
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 2 Oct 2023 03:03:59 +0000 (16:03 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Oct 2023 22:23:37 +0000 (22:23 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/functional_level.py
python/samba/netcmd/delegation.py

index 3746516b49bf9032aea5745d60c8a9d666942a64..e5ccf3988fb773d94d039f4da1612559e667f8a7 100644 (file)
@@ -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)
index 35a91aca45811461d7eedf2a6274b9f0f4a067c9..840be2088a322240e8aae0d9bf8912ee3b10658d 100644 (file)
@@ -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: '