Package: gnome-shell-timer / 0.3.20+20190726-1

Switch-to-Python-3.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: =?utf-8?q?Rapha=C3=ABl_Hertzog?= <hertzog@debian.org>
Date: Sat, 31 Aug 2019 16:41:54 +0200
Subject: Switch to Python 3

---
 gnome-shell-timer-config.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnome-shell-timer-config.py b/gnome-shell-timer-config.py
index 4d68b77..8ae298c 100755
--- a/gnome-shell-timer-config.py
+++ b/gnome-shell-timer-config.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # -*- Mode: Python; py-indent-offset: 4 -*-
 # vim: tabstop=4 shiftwidth=4 expandtab
@@ -152,7 +152,7 @@ class SettingFrame:
             cellrenderer.set_property('editable', True)
             column = Gtk.TreeViewColumn(_("Name"), cellrenderer, text=0)
             cellrenderer.connect('edited', edited_name, treeView, store, self.schema)
-            column.set_sort_column_id(0)    
+            column.set_sort_column_id(0)
             treeView.append_column(column)
             cellrenderer = Gtk.CellRendererText()
             cellrenderer.set_property('editable', True)
@@ -235,13 +235,13 @@ class SettingFrame:
             label = Gtk.Label(label=_("Current sound file : ")+str(os.path.basename(self.schema.get_string(key))))
             self.hbox3.add(label)
             item.connect('clicked', self.on_file_clicked, label)
-   
+
     def on_file_clicked(self, widget, label):
         dialog = Gtk.FileChooserDialog(_("Please choose a file"), main_window,
             Gtk.FileChooserAction.OPEN,
             (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
              Gtk.STOCK_OPEN, Gtk.ResponseType.OK))
-             
+
         filter_sound = Gtk.FileFilter()
         filter_sound.set_name(_("Audio file"))
         filter_sound.add_mime_type("audio/*")