diff options
Diffstat (limited to 'src/prepaid-manager-applet.py')
-rwxr-xr-x | src/prepaid-manager-applet.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py index f0fe9a3..ab47f88 100755 --- a/src/prepaid-manager-applet.py +++ b/src/prepaid-manager-applet.py @@ -15,6 +15,10 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, see <http://www.gnu.org/licenses/>. +from builtins import str +from builtins import range +from past.utils import old_div +from builtins import object import gettext import gi from gi.repository import GObject @@ -410,8 +414,8 @@ class PPMDialog(GObject.GObject, PPMObject): sensitive = True if self.code_len > 0: - self.entry_code.set_progress_fraction(float(cur_len) / - self.code_len) + self.entry_code.set_progress_fraction(old_div(float(cur_len), + self.code_len)) if cur_len != self.code_len: sensitive = False self.button_top_up.set_sensitive(sensitive) @@ -569,7 +573,7 @@ class PPMNoModemFoundInfoBar(PPMInfoBar): class PPMProviderAssistant(PPMObject): - PAGE_INTRO, PAGE_COUNTRIES, PAGE_PROVIDERS, PAGE_CONFIRM = range(0, 4) + PAGE_INTRO, PAGE_COUNTRIES, PAGE_PROVIDERS, PAGE_CONFIRM = list(range(0, 4)) def __init__(self, main_dialog): PPMObject.__init__(self, main_dialog, "ppm-provider-assistant") |