Skip to content

Commit

Permalink
Use os.devnull instead of hardcoded /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Sep 19, 2014
1 parent 410c203 commit be241c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def is_available(cls):
@property
def languages(self):
cmd = ['pico2wave', '-l', 'NULL',
'-w', '/dev/null',
'-w', os.devnull,
'NULL']
with tempfile.SpooledTemporaryFile() as f:
subprocess.call(cmd, stderr=f)
Expand Down

0 comments on commit be241c8

Please sign in to comment.