minor cosmetics

This commit is contained in:
Miroslav Stampar
2010-10-25 19:45:53 +00:00
parent d7bf94d4d6
commit 73eea81b3a
2 changed files with 9 additions and 7 deletions

View File

@@ -1503,13 +1503,9 @@ def beep():
if sys.platform=='linux2':
try:
audio=file('/dev/audio', 'wb')
count=0
while count < 250:
beep=chr(32) * 4
audio.write(beep)
beep=chr(0) * 4
audio.write(beep)
count=count + 1
for i in xrange(250):
audio.write(chr(32) * 4)
audio.write(chr(0) * 4)
audio.close()
except:
print '\a'