Skip to content

Commit

Permalink
Merge pull request jiaaro#396 from KaltakhchyanD/patch-1
Browse files Browse the repository at this point in the history
Change open to with open in README.md
  • Loading branch information
jiaaro committed Jan 30, 2020
2 parents 03ce984 + 3dd875f commit b1d9405
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,8 @@ playlist = playlist.fade_out(30)
playlist_length = len(playlist) / (1000*60)

# lets save it!
out_f = open("%s_minute_playlist.mp3" % playlist_length, 'wb')

playlist.export(out_f, format='mp3')
with open("%s_minute_playlist.mp3" % playlist_length, 'wb') as out_f:
playlist.export(out_f, format='mp3')
```

## License ([MIT License](http://opensource.org/licenses/mit-license.php))
Expand Down

0 comments on commit b1d9405

Please sign in to comment.