mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
move imports from functions to the top of the file (#11396)
* move imports from functions to the top of the file * add changelog frag * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -272,6 +272,8 @@ EXAMPLES = r"""
|
||||
delegate_to: localhost
|
||||
"""
|
||||
|
||||
import random
|
||||
import string
|
||||
import time
|
||||
import traceback
|
||||
|
||||
@@ -295,8 +297,6 @@ def randompass():
|
||||
# It must contain at least two of these four character classes:
|
||||
# lower case letters - upper case letters - numbers - punctuation
|
||||
# we play it safe :)
|
||||
import random
|
||||
import string
|
||||
|
||||
# as of python 2.4, this reseeds the PRNG from urandom
|
||||
random.seed()
|
||||
|
||||
Reference in New Issue
Block a user