summaryrefslogtreecommitdiff
path: root/dynconfig
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-12-11 12:12:08 +0000
committerAndrew Bartlett <abartlet@samba.org>2018-12-14 00:51:32 +0100
commit166d119d48efd6b7b4f8f5978c71c50bad2109ca (patch)
tree08261e75cec2c79d57b8a2d83708491dceebab4e /dynconfig
parent28ecdd977735a02740e67861bc69d5b461d6c77f (diff)
downloadsamba-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/wscript2
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()