]> git.alsa-project.org Git - alsa-tools.git/commit
hwmixvolume: use a with context to open files
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tue, 18 Sep 2018 13:42:34 +0000 (15:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Sep 2018 07:08:27 +0000 (09:08 +0200)
commit213b28a5aa71ffbd77443e17d805743f39f50821
tree72b5112edc607801049d80cf2cfd2e124abe1a05
parenta21dda3d8667bdd594254ec590d0282b1e30e014
hwmixvolume: use a with context to open files

This feature has been added in Python 2.5 and automatically closes an
open file once the context exits.

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
hwmixvolume/hwmixvolume