diff options
author | Noel Power <noel.power@suse.com> | 2018-12-11 12:17:59 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-12-14 00:51:33 +0100 |
commit | 9116cc8cc81dd96ed6c303577c9e66fb3a10db3e (patch) | |
tree | c283e9c8a48cb832d64b7eb35cc27913f955ba55 /source4 | |
parent | 166d119d48efd6b7b4f8f5978c71c50bad2109ca (diff) | |
download | samba-9116cc8cc81dd96ed6c303577c9e66fb3a10db3e.tar.gz |
s4/scripting: 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 'source4')
-rwxr-xr-x | source4/scripting/bin/rpcclient | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/rpcclient b/source4/scripting/bin/rpcclient index cbab0d53820..cabd2e36350 100755 --- a/source4/scripting/bin/rpcclient +++ b/source4/scripting/bin/rpcclient @@ -278,11 +278,11 @@ if __name__ == '__main__': options.username = '%' domain = '' - if string.find(options.username, '\\') != -1: + if options.username.find('\\') != -1: domain, options.username = string.split(options.username, '\\') password = '' - if string.find(options.username, '%') != -1: + if options.username.find('%') != -1: options.username, password = string.split(options.username, '%') username = options.username |