pysmbc icon indicating copy to clipboard operation
pysmbc copied to clipboard

Support with/as

Open frafra opened this issue 5 years ago • 0 comments

Valid code:

f = ctx.open(path, mask)
f.write(content)
f.close()

Proposal:

with ctx.open(path, mask) as f:
    f.write(content)

frafra avatar Oct 25 '19 08:10 frafra