From: Noel Power Date: Tue, 11 Dec 2018 12:12:08 +0000 (+0000) Subject: dynconfig/wscript: python3 fix string.find instance X-Git-Tag: tdb-1.3.17~323 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=166d119d48efd6b7b4f8f5978c71c50bad2109ca;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andrew Bartlett --- 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()