[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Suppress deprecation warning for set_wmclass

noreply at xfce.org noreply at xfce.org
Sat Jul 13 21:40:34 CEST 2019


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

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 8dec3c0f824c814d151715188b0b71915e56680f
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Jul 13 15:40:27 2019 -0400

    Suppress deprecation warning for set_wmclass
---
 src/xfce4-screensaver-configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/xfce4-screensaver-configure b/src/xfce4-screensaver-configure
index c10f5a0..4ebf33c 100755
--- a/src/xfce4-screensaver-configure
+++ b/src/xfce4-screensaver-configure
@@ -24,6 +24,7 @@ import os
 import subprocess
 import sys
 import xml.etree.ElementTree as ET
+import warnings
 
 from collections import OrderedDict
 
@@ -37,6 +38,8 @@ from gi.repository import GLib
 from gi.repository import Gtk
 from gi.repository import Gdk
 
+warnings.filterwarnings("ignore")
+
 
 class XfconfChannel:
 
@@ -263,7 +266,6 @@ class XmlScreensaverSettings(ScreensaverSettings):
             element_type = "property"
         return (element_id, element_type)
 
-
     def parse_element(self, element):
         text = None
         options = None

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list