diff cagou/plugins/plugin_transfer_android_photo.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 1b835bcfa663
children 4d660b252487
line wrap: on
line diff
--- a/cagou/plugins/plugin_transfer_android_photo.py	Mon Aug 05 11:21:54 2019 +0200
+++ b/cagou/plugins/plugin_transfer_android_photo.py	Tue Aug 13 19:14:22 2019 +0200
@@ -34,12 +34,12 @@
 
 
 PLUGIN_INFO = {
-    "name": _(u"take photo"),
+    "name": _("take photo"),
     "main": "AndroidPhoto",
     "platforms": ('android',),
     "external": True,
-    "description": _(u"upload a photo from photo application"),
-    "icon_medium": u"{media}/icons/muchoslava/png/camera_off_50.png",
+    "description": _("upload a photo from photo application"),
+    "icon_medium": "{media}/icons/muchoslava/png/camera_off_50.png",
 }
 
 
@@ -51,7 +51,7 @@
         filename = time.strftime("%Y-%m-%d_%H:%M:%S.jpg", time.gmtime())
         tmp_dir = self.getTmpDir()
         tmp_file = os.path.join(tmp_dir, filename)
-        log.debug(u"Picture will be saved to {}".format(tmp_file))
+        log.debug("Picture will be saved to {}".format(tmp_file))
         camera.take_picture(tmp_file, self.callback)
         # we don't delete the file, as it is nice to keep it locally