diff options
author | Noel Power <noel.power@suse.com> | 2018-12-11 12:12:08 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-12-14 00:51:32 +0100 |
commit | 166d119d48efd6b7b4f8f5978c71c50bad2109ca (patch) | |
tree | 08261e75cec2c79d57b8a2d83708491dceebab4e /dynconfig | |
parent | 28ecdd977735a02740e67861bc69d5b461d6c77f (diff) | |
download | samba-166d119d48efd6b7b4f8f5978c71c50bad2109ca.tar.gz |
dynconfig/wscript: python3 fix string.find instance
string.find doesn't exist in python3. Instead use the 'find' method
of the string instance itself
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'dynconfig')
-rw-r--r-- | dynconfig/wscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dynconfig/wscript b/dynconfig/wscript index e9ca4e5b9df..e352712d284 100644 --- a/dynconfig/wscript +++ b/dynconfig/wscript @@ -46,7 +46,7 @@ class SambaIndentedHelpFormatter (optparse.IndentedHelpFormatter): result.append(opts) if option.help: help_text = self.expand_default(option) - if string.find(help_text, '\n') == -1: + if help_text.find('\n') == -1: help_lines = textwrap.wrap(help_text, self.help_width) else: help_lines = help_text.splitlines() |