From: =?utf-8?q?Guido_G=C3=BCnther?= 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)