[X2Go-Commits] [python-x2go] 01/01: x2go/session.py: Fix SyntaxWarning ('is not' used on a literal).

git-admin at x2go.org git-admin at x2go.org
Tue Nov 10 08:36:54 CET 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository python-x2go.

commit fa6c97a64acbc45de9ca153a909c280a1f2981e0
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Nov 10 08:36:47 2020 +0100

    x2go/session.py: Fix SyntaxWarning ('is not' used on a literal).
---
 debian/changelog | 1 +
 x2go/session.py  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c424101..cf99b6a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ python-x2go (0.6.1.4-0x2go1) UNRELEASED; urgency=medium
   [ Mike Gabriel ]
   * New upstream version (0.6.1.4):
     - Make build (more) reproducible: no builddir in python-x2go-doc.
+    - Amend SyntaxWarning ('is not' used on a literal).
 
  -- X2Go Release Manager <git-admin at x2go.org>  Wed, 01 Jan 2020 20:25:50 +0100
 
diff --git a/x2go/session.py b/x2go/session.py
index e998ba0..de5d138 100644
--- a/x2go/session.py
+++ b/x2go/session.py
@@ -2017,7 +2017,7 @@ class X2GoSession(object):
                 self._progress_status = 35
                 progress_event.set()
 
-                if self._SUPPORTED_SOUND and self.terminal_session.params.snd_system is not 'none':
+                if self._SUPPORTED_SOUND and self.terminal_session.params.snd_system != 'none':
                     self.has_terminal_session() and not self.faulty and self.terminal_session.start_sound()
                 else:
                     self._SUPPORTED_SOUND = False

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git


More information about the x2go-commits mailing list