Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tautils.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-03-22 01:47:57 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-03-22 01:47:57 (GMT)
commitedf6d4698bfbfac0c202480c2f3d89102a7d95ce (patch)
treeff6b3ab9557ba5a377fb3e49ae99757b37bb2abe /TurtleArt/tautils.py
parentb7c64a3d7eea4905c238351898791f7ecd8379aa (diff)
clean up
Diffstat (limited to 'TurtleArt/tautils.py')
-rw-r--r--TurtleArt/tautils.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py
index 45128e0..0bad48a 100644
--- a/TurtleArt/tautils.py
+++ b/TurtleArt/tautils.py
@@ -1,5 +1,6 @@
-#copyright (c) 2007-8, Playful Invention Company.
+#copyright (c) 2007-8, Playful Invention Company
#Copyright (c) 2008-13, Walter Bender
+#Copyright (c) 2013 Alan Aguiar
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
@@ -805,11 +806,11 @@ def power_manager_off(status):
except gconf.GError:
pass
- bus = dbus.SystemBus()
+ _bus = dbus.SystemBus()
try:
- proxy = bus.get_object(OHM_SERVICE_NAME, OHM_SERVICE_PATH)
- self._keystore = dbus.Interface(proxy, OHM_SERVICE_IFACE)
- self._keystore.SetKey('suspend.automatic_pm', bool(VALUE))
+ _proxy = _bus.get_object(OHM_SERVICE_NAME, OHM_SERVICE_PATH)
+ _keystore = dbus.Interface(_proxy, OHM_SERVICE_IFACE)
+ _keystore.SetKey('suspend.automatic_pm', bool(VALUE))
except dbus.exceptions.DBusException:
if status:
try: