tmbdev / tarproc

Dangerous default argument PYL-W0102
Bug risk
Critical
4 years ago4 years old
Dangerous default value [] as argument
179"""
180
181
182def docker_build(c, instructions, files=[], nocache=False):183    with tempfile.TemporaryDirectory() as dir:
184        with open(dir + "/Dockerfile", "w") as stream:
185            stream.write(instructions)