mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
python/samba: PY3 fix can't compare string with int
Testing a string against an int value is illegal and is not necessary in this case, this patch removes the problematic test. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
fe859a4477
commit
f176461cf2
@ -63,9 +63,6 @@ class SambaOptions(optparse.OptionGroup):
|
||||
self._configfile = arg
|
||||
|
||||
def _set_debuglevel(self, option, opt_str, arg, parser):
|
||||
if arg < 0:
|
||||
raise optparse.OptionValueError("invalid %s option value: %s" %
|
||||
(opt_str, arg))
|
||||
self._lp.set('debug level', arg)
|
||||
parser.values.debuglevel = arg
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user