Skip to content

Commit

Permalink
Delete temporary files when done parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
KoleS46 committed Dec 20, 2013
1 parent 4fb0095 commit 4ed5cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymediainfo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def parse(filename, environment=ENV_DICT):
xml_dom = MediaInfo.parse_xml_data_into_dom(fp_out.read())
fp_out.close()
fp_err.close()
os.unlink(fileno_out)
os.unlink(fileno_err)
os.unlink(fname_out)
os.unlink(fname_err)
return MediaInfo(xml_dom)

def _populate_tracks(self):
Expand Down

0 comments on commit 4ed5cdc

Please sign in to comment.