Skip to content

Commit

Permalink
style: format code with Black and PHP CS Fixer
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 90adab1 according to the output
from Black and PHP CS Fixer.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Jan 8, 2025
1 parent 90adab1 commit ce474c1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pulse_xmpp_agent/connectionagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ async def message(self, msg):
"Start relay server agent configuration\n%s"
% json.dumps(data["data"], indent=4, sort_keys=True)
)
logger.info(f"The choosen relayserver is {data['data'][0][2]} with the IP {data['data'][0][0]}")
logger.info(
f"The choosen relayserver is {data['data'][0][2]} with the IP {data['data'][0][0]}"
)

if data["ssh_public_key"]:
try:
Expand Down Expand Up @@ -720,7 +722,9 @@ async def message(self, msg):
# Calcul du temps écoulé
temps_ecoule = timefin - self.timedebut
# Log du temps de traitement
logger.info(f"The configuration is done. It tooks {temps_ecoule:.2f} seconds")
logger.info(
f"The configuration is done. It tooks {temps_ecoule:.2f} seconds"
)
self.disconnect(wait=1)

def infosubstitute(self):
Expand Down Expand Up @@ -866,7 +870,9 @@ def handle_connecting(self, data):
# Calcul du temps écoulé
time_connection = time_connection_ok - self.timedebut
# Log du temps de traitement
logger.debug(f"The connection to the ejabberd server took {time_connection:.2f} seconds")
logger.debug(
f"The connection to the ejabberd server took {time_connection:.2f} seconds"
)

def handle_connection_failed(self, data):
"""
Expand Down

0 comments on commit ce474c1

Please sign in to comment.