changeset 3113:b067736d5099

quick frontend (app): removed workaround for pyjamas
author Goffi <goffi@goffi.org>
date Fri, 17 Jan 2020 15:27:39 +0100
parents 91891a108d6f
children 060ac43627fc
files sat_frontends/quick_frontend/quick_app.py sat_frontends/quick_frontend/quick_contact_list.py
diffstat 2 files changed, 4 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_app.py	Fri Jan 17 15:26:44 2020 +0100
+++ b/sat_frontends/quick_frontend/quick_app.py	Fri Jan 17 15:27:39 2020 +0100
@@ -18,9 +18,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.log import getLogger
-
-log = getLogger(__name__)
-
 from sat.core.i18n import _
 from sat.core import exceptions
 from sat.tools import trigger
@@ -38,14 +35,8 @@
 from collections import OrderedDict
 import time
 
-try:
-    # FIXME: to be removed when an acceptable solution is here
-    str("")  # XXX: unicode doesn't exist in pyjamas
-except (
-    TypeError,
-    AttributeError,
-):  # Error raised is not the same depending on pyjsbuild options
-    str = str
+
+log = getLogger(__name__)
 
 
 class ProfileManager(object):
--- a/sat_frontends/quick_frontend/quick_contact_list.py	Fri Jan 17 15:26:44 2020 +0100
+++ b/sat_frontends/quick_frontend/quick_contact_list.py	Fri Jan 17 15:27:39 2020 +0100
@@ -1,7 +1,6 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
-# helper class for making a SAT frontend
+# helper class for making a SàT frontend contact lists
 # Copyright (C) 2009-2019 Jérôme Poisson (goffi@goffi.org)
 
 # This program is free software: you can redistribute it and/or modify