MT#57394 Apps: fix `inconsistent use of tabs and spaces in indentation`

It's been noticed that the compiler reports us:
`Sorry: TabError: inconsistent use of tabs and spaces in indentation`

for the following files:
- apps/examples/mixin_announce/mix_announce.py
- apps/examples/tutorial/annc_service/annc_service.py

This commit fixes it.

Change-Id: I7367af707b50799997d8d2f9c6f1dbff0907f459
mr11.4.1
Donat Zenichev 3 years ago
parent 551ff86c70
commit 3627c0d707

@ -12,13 +12,13 @@ class IvrDialog(IvrDialogBase):
self.announcement = IvrAudioFile()
self.announcement.open(config['announcement'], ivr.AUDIO_READ)
#self.enqueue(self.announcement, None)
self.beep = IvrAudioFile()
self.beep.open(config['beep'], ivr.AUDIO_READ)
self.beep.open(config['beep'], ivr.AUDIO_READ)
self.mixin = IvrAudioMixIn()
self.mixin.init(self.announcement, self.beep, 3, 0.6, True)
self.enqueue(self.mixin, None)
self.enqueue(self.mixin, None)
def onEmptyQueue(self):
self.bye()

@ -5,7 +5,6 @@
# supported parameters:
# play, repeat, duration, delay
from log import *
from ivr import *
@ -44,7 +43,7 @@ class IvrDialog(IvrDialogBase):
self.delay=int(param[6:len(param)])
elif (param.startswith("duration=")):
self.duration=int(param[9:len(param)])
resource = urlparse(self.play)
if (resource[0] == "http"):
self.delete_onbye = True
@ -61,16 +60,15 @@ class IvrDialog(IvrDialogBase):
if (int(self.duration) > 0):
self.setTimer(TIMEOUT_TIMER_ID, self.duration/1000)
self.enqueue(self.announcement, None)
def onBye(self):
self.stopSession()
self.cleanup()
def onEmptyQueue(self):
if (self.repeat_left>0):
if (self.repeat_left > 0):
if (int(self.delay) > 0):
self.setTimer(DELAY_TIMER_ID, int(self.delay)/1000)
else:
@ -100,5 +98,3 @@ class IvrDialog(IvrDialogBase):
unlink(self.filename)
debug("cleanup..." + self.filename + " deleted.")
self.removeTimers()

Loading…
Cancel
Save