aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/No-need-to-use-old_div.patch30
-rw-r--r--debian/patches/series1
2 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/No-need-to-use-old_div.patch b/debian/patches/No-need-to-use-old_div.patch
new file mode 100644
index 0000000..8dc6ec0
--- /dev/null
+++ b/debian/patches/No-need-to-use-old_div.patch
@@ -0,0 +1,30 @@
+From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Thu, 2 Jul 2020 10:17:51 +0200
+Subject: No need to use old_div
+
+---
+ src/prepaid-manager-applet.py | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py
+index 454d4a1..350c6b7 100755
+--- a/src/prepaid-manager-applet.py
++++ b/src/prepaid-manager-applet.py
+@@ -17,7 +17,6 @@
+
+ from builtins import str
+ from builtins import range
+-from past.utils import old_div
+ from builtins import object
+ import locale
+ import logging
+@@ -410,8 +409,7 @@ class PPMDialog(Gtk.ApplicationWindow):
+ sensitive = True
+
+ if self.code_len > 0:
+- self.entry_code.set_progress_fraction(old_div(float(cur_len),
+- self.code_len))
++ self.entry_code.set_progress_fraction(cur_len / self.code_len)
+ if cur_len != self.code_len:
+ sensitive = False
+ self.button_top_up.set_sensitive(sensitive)
diff --git a/debian/patches/series b/debian/patches/series
index 997b69a..2ff0e03 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
Also-use-python3-when-not-running-via-wrapper.patch
data-Make-appdata-validator-happy.patch
+No-need-to-use-old_div.patch