From: Björn Jacke Date: Sun, 25 Aug 2019 22:50:29 +0000 (+0200) Subject: user.py: import tempfile module only where needed X-Git-Tag: talloc-2.3.1~747 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd0837c9a84bdbb98c9c31997c431173dfe6e714;p=thirdparty%2Fsamba.git user.py: import tempfile module only where needed Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py index e9f35f158e3..e59222f7727 100644 --- a/python/samba/netcmd/user.py +++ b/python/samba/netcmd/user.py @@ -23,7 +23,6 @@ import pwd import os import io import re -import tempfile import difflib import fcntl import signal @@ -2411,6 +2410,7 @@ LDAP server using the 'nano' editor. except IndexError: raise CommandError('Unable to find user "%s"' % (username)) + import tempfile for msg in res: result_ldif = common.get_ldif_for_editor(samdb, msg)