diff options
author | Björn Jacke <bj@sernet.de> | 2019-08-26 00:50:29 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-09-21 19:33:25 +0000 |
commit | dd0837c9a84bdbb98c9c31997c431173dfe6e714 (patch) | |
tree | 58ee47700567ce8fe31ace7d5163a881f7e7a0b2 /python/samba | |
parent | 01b0e5aadf9a9bb6c806850c3708933eebd08c6b (diff) | |
download | samba-dd0837c9a84bdbb98c9c31997c431173dfe6e714.tar.gz |
user.py: import tempfile module only where needed
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba')
-rw-r--r-- | python/samba/netcmd/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |