diff cagou/plugins/plugin_transfer_voice.py @ 312:772c170b47a9

Python3 port: /!\ Cagou now runs with Python 3.6+ Port has been done in the same way as for backend (check backend commit b2d067339de3 message for details).
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:14:22 +0200
parents ca4daced4638
children 4d660b252487
line wrap: on
line diff
--- a/cagou/plugins/plugin_transfer_voice.py	Mon Aug 05 11:21:54 2019 +0200
+++ b/cagou/plugins/plugin_transfer_voice.py	Tue Aug 13 19:14:22 2019 +0200
@@ -31,11 +31,11 @@
 
 
 PLUGIN_INFO = {
-    "name": _(u"voice"),
+    "name": _("voice"),
     "main": "VoiceRecorder",
     "platforms": ["android"],
-    "description": _(u"transmit a voice record"),
-    "icon_medium": u"{media}/icons/muchoslava/png/micro_off_50.png",
+    "description": _("transmit a voice record"),
+    "icon_medium": "{media}/icons/muchoslava/png/micro_off_50.png",
 }
 
 
@@ -67,7 +67,7 @@
             except Exception as e:
                 # an exception can happen if record is pressed
                 # repeatedly in a short time (not a normal use)
-                log.warning(u"Exception on stop: {}".format(e))
+                log.warning("Exception on stop: {}".format(e))
             self._counter_timer.cancel()
             self.time = self.time + 1
         else:
@@ -99,7 +99,7 @@
             except Exception as e:
                 # an exception can happen in the same situation
                 # as for audio.stop() above (i.e. bad record)
-                log.warning(u"Exception on play: {}".format(e))
+                log.warning("Exception on play: {}".format(e))
                 self.time = 0
                 return