[chrome-gnome-shell/feature/python3] pylint: remove useless global statements
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell/feature/python3] pylint: remove useless global statements
- Date: Sun, 27 Mar 2016 10:19:02 +0000 (UTC)
commit 212f654d51a8555eb105dfbb84200c5a0cf4a6f1
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Sun Mar 27 13:02:23 2016 +0300
pylint: remove useless global statements
connector/gs-chrome-connector.py | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/connector/gs-chrome-connector.py b/connector/gs-chrome-connector.py
index f48e457..e0d6747 100755
--- a/connector/gs-chrome-connector.py
+++ b/connector/gs-chrome-connector.py
@@ -64,8 +64,6 @@ def send_error(message):
send_message({'success': False, 'message': message})
def debug(message):
- global DEBUG_ENABLED
-
if DEBUG_ENABLED:
logError(message)
@@ -88,7 +86,6 @@ def dbus_call_response(method, parameters, resultProperty):
# Thread that reads messages from the webapp.
def read_thread_func(proxy, mainLoop):
- global mutex
settings = Gio.Settings.new(SHELL_SCHEMA)
while mainLoop.is_running():
@@ -190,8 +187,6 @@ def read_thread_func(proxy, mainLoop):
def on_shell_signal(d_bus_proxy, sender_name, signal_name, parameters):
- global mutex
-
if signal_name == 'ExtensionStatusChanged':
mutex.acquire()
debug('[%d] Signal: to %s' % (os.getpid(), signal_name))
@@ -201,7 +196,7 @@ def on_shell_signal(d_bus_proxy, sender_name, signal_name, parameters):
def on_shell_appeared(connection, name, name_owner):
- global mutex, watcherConnected
+ global watcherConnected
# Things get broken if we send 1st signal
if not watcherConnected:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]