Merge lp:~mfisch/singlet/fix_deprecation_warning into lp:singlet

Proposed by Matt Fischer
Status: Merged
Approved by: Michael Hall
Approved revision: 23
Merged at revision: 23
Proposed branch: lp:~mfisch/singlet/fix_deprecation_warning
Merge into: lp:singlet
Diff against target: 31 lines (+3/-6)
1 file modified
src/singlet/utils.py (+3/-6)
To merge this branch: bzr merge lp:~mfisch/singlet/fix_deprecation_warning
Reviewer Review Type Date Requested Status
Michael Hall Pending
Review via email: mp+139301@code.launchpad.net

Description of the change

Fixed the deprecated code warnings you get in raring. Also works fine in Q, have not tested in P.

To post a comment you must log in.
Revision history for this message
Matt Fischer (mfisch) wrote :

Also I removed some unused imports which may reduce memory usage?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/singlet/utils.py'
--- src/singlet/utils.py 2012-03-14 15:34:12 +0000
+++ src/singlet/utils.py 2012-12-11 19:43:22 +0000
@@ -17,11 +17,8 @@
17# along with this program. If not, see <http://www.gnu.org/licenses/>.17# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
19import sys19import sys
20import os
21import shutil
22import subprocess
2320
24from gi.repository import GLib, GObject, Gio21from gi.repository import GLib, Gio
2522
26import singlet23import singlet
2724
@@ -43,7 +40,7 @@
43 raise SystemExit (1)40 raise SystemExit (1)
44 41
45 lens = lens_class()42 lens = lens_class()
46 GObject.MainLoop().run() 43 GLib.MainLoop().run()
4744
48def run_scope(scope_class, args=None):45def run_scope(scope_class, args=None):
49 session_bus_connection = Gio.bus_get_sync (Gio.BusType.SESSION, None)46 session_bus_connection = Gio.bus_get_sync (Gio.BusType.SESSION, None)
@@ -63,4 +60,4 @@
63 raise SystemExit (1)60 raise SystemExit (1)
64 61
65 scope = scope_class()62 scope = scope_class()
66 GObject.MainLoop().run() 63 GLib.MainLoop().run()

Subscribers

People subscribed via source and target branches