ui/UIBase.py split the if

This patch splits the if to avoid multiple commands in the same line.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 18:09:32 +02:00
parent b1a719ad9e
commit 833816cf62

View File

@ -314,7 +314,9 @@ class UIBase:
def connecting(self, reposname, hostname, port):
"""Log 'Establishing connection to'."""
if not self.logger.isEnabledFor(logging.INFO): return
if not self.logger.isEnabledFor(logging.INFO):
return
displaystr = ''
hostname = hostname if hostname else ''
port = "%s" % port if port else ''