CLN: use with instead of try finally in io/stata.py (#38326)
CLN: use with instead of try finally in io/stata.py (#38326)

Co-authored-by: VirosaLi <2EkF8qUgpNkj>
datapythonista/pandas,jreback/pandas,rs2/pandas,gfyoung/pandas,pandas-dev/pandas,jorisvandenbossche/pandas,dsm054/pandas,gfyoung/pandas,jorisvandenbossche/pandas,dsm054/pandas,rs2/pandas,rs2/pandas,gfyoung/pandas,datapythonista/pandas,pandas-dev/pandas,jreback/pandas,gfyoung/pandas,pandas-dev/pandas,jreback/pandas,pandas-dev/pandas,gfyoung/pandas,datapythonista/pandas,dsm054/pandas,jreback/pandas,dsm054/pandas,jorisvandenbossche/pandas,jorisvandenbossche/pandas,jreback/pandas,datapythonista/pandas,dsm054/pandas,rs2/pandas