Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format code with black and php-cs-fixer #467

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions agent/mmc/agent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8; -*-
# SPDX-FileCopyrightText: 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
# SPDX-FileCopyrightText: 2007-2010 Mandriva, http://www.mandriva.com/
# SPDX-FileCopyrightText: 2016-2023 Siveo <support@siveo.net>
# SPDX-FileCopyrightText: 2016-2023 Siveo <support@siveo.net>
# SPDX-License-Identifier: GPL-2.0-or-later

"""
Expand Down Expand Up @@ -345,6 +345,7 @@ def doRollover(self):
f.write(dfn, dfn_zipped, zipfile.ZIP_DEFLATED)
os.remove(dfn)


logger = logging.getLogger()

sys.path.append("plugins")
Expand Down Expand Up @@ -862,7 +863,6 @@ def reloadModulesConfiguration(self):
# ======== XMLRPC Standard Introspection methods ================

def listMethods(self):

method_list = []

for mod in self.modules:
Expand Down Expand Up @@ -1318,7 +1318,6 @@ def cleanUp(self):
function call before shutdown of reactor
"""
if PluginManager().isEnabled("xmppmaster"):

# self.modulexmppmaster
if self.modulexmppmaster.isAlive():
logger.info("mmc-agent xmppmaster stop...")
Expand Down