From 166d119d48efd6b7b4f8f5978c71c50bad2109ca Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 11 Dec 2018 12:12:08 +0000 Subject: [PATCH] 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 --- dynconfig/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.34.1