mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
10 lines
245 B
Python
10 lines
245 B
Python
def nested_safe(src, dst):
|
|||
with open(src, 'r') as reader:
|
|||
with open(dst, 'w') as writer:
|
|||
writer.write(reader.read())
|
|||
|
|||
def outside_leak(path):
|
|||
f = open(path, 'r')
|
|||
data = f.read()
|
|||
# f never closed — real leak
|