Pylint: enable global-variable-not-assigned check

the global keyword should be used only when variable from outside is
assigned inside, otherwise it has no effect and just confuses developers

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Martin Basti
2016-09-22 14:39:16 +02:00
parent 4d7d53c966
commit 9b68d2a1f8
6 changed files with 3 additions and 15 deletions

View File

@@ -38,7 +38,9 @@ KEYTAB_FB = paths.IPA_DNSKEYSYNCD_KEYTAB
# Shutdown handler
def commenceShutdown(signum, stack):
# Declare the needed global variables
global watcher_running, ldap_connection, log
global watcher_running
global ldap_connection # pylint: disable=global-variable-not-assigned
log.info('Signal %s received: Shutting down!', signum)
# We are no longer running