]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python: move comment for check_bytes to docstring
authorRob van der Linde <rob@catalyst.net.nz>
Wed, 4 Oct 2023 22:29:59 +0000 (11:29 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 24 Oct 2023 23:31:29 +0000 (23:31 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/getopt.py

index e6fe6ab57a3adf687c7b5c59cc30d5ed5ae6ffa5..f6d754eb6d59a61f13a1cfc1c4bcec22a32d1841 100644 (file)
@@ -365,11 +365,12 @@ class CredentialsOptionsDouble(CredentialsOptions):
         return self.creds2
 
 
-# Custom option type to allow the input of sizes using byte, kb, mb ...
-# units, e.g. 2Gb, 4KiB ...
-#    e.g. Option("--size", type="bytes", metavar="SIZE")
-#
 def check_bytes(option, opt, value):
+    """Custom option type to allow the input of sizes using byte, kb, mb ...
+
+    units, e.g. 2Gb, 4KiB ...
+       e.g. Option("--size", type="bytes", metavar="SIZE")
+    """
 
     multipliers = {"B": 1,
                    "KB": 1024,