From 3627c0d707acd440a8bebf1c5f830d7ee155fcf6 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 10 May 2023 15:02:54 +0200 Subject: [PATCH] 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 --- apps/examples/mixin_announce/mix_announce.py | 8 ++++---- apps/examples/tutorial/annc_service/annc_service.py | 12 ++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/apps/examples/mixin_announce/mix_announce.py b/apps/examples/mixin_announce/mix_announce.py index dc30c76f..fc38199a 100644 --- a/apps/examples/mixin_announce/mix_announce.py +++ b/apps/examples/mixin_announce/mix_announce.py @@ -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() diff --git a/apps/examples/tutorial/annc_service/annc_service.py b/apps/examples/tutorial/annc_service/annc_service.py index bcbd123c..0d39a5e1 100644 --- a/apps/examples/tutorial/annc_service/annc_service.py +++ b/apps/examples/tutorial/annc_service/annc_service.py @@ -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() - -