mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
python: move comment for check_bytes to docstring
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
22316fea33
commit
e209b8d79c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user