[Xfce4-commits] [apps/xfce4-panel-profiles] 01/01: Suppress deprecation warnings
noreply at xfce.org
noreply at xfce.org
Sat Jul 27 14:34:54 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-panel-profiles.
commit 1cff18e17bd94dfb0df10e04e16abb8170a63f94
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sat Jul 27 08:34:49 2019 -0400
Suppress deprecation warnings
---
xfce4-panel-profiles/xfce4-panel-profiles.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xfce4-panel-profiles/xfce4-panel-profiles.py b/xfce4-panel-profiles/xfce4-panel-profiles.py
index 224e9b4..1c80d1f 100644
--- a/xfce4-panel-profiles/xfce4-panel-profiles.py
+++ b/xfce4-panel-profiles/xfce4-panel-profiles.py
@@ -26,6 +26,8 @@ import shlex
import os
import datetime
+import warnings
+
import gi
gi.require_version('Gtk', '3.0')
@@ -33,6 +35,8 @@ from gi.repository import Gtk, GLib, Gio
from panelconfig import PanelConfig
+warnings.filterwarnings("ignore")
+
homedir = GLib.get_home_dir()
cachedir = GLib.get_user_cache_dir()
cachefile = os.path.join(cachedir, "xfce4-panel-profiles.tar.gz")
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list