]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
user.py: import tempfile module only where needed
authorBjörn Jacke <bj@sernet.de>
Sun, 25 Aug 2019 22:50:29 +0000 (00:50 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 21 Sep 2019 19:33:25 +0000 (19:33 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/user.py

index e9f35f158e316dbff8adfea609a31f5aedaf78d1..e59222f77272a0e521286b9a0a449a9782377333 100644 (file)
@@ -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)