python - How to avoid additional whitespaces in loggerfile, caused by indentions -


today applied pep 8 coding convention on project. therefore splitted logger.debug avoid e501 line long. have now:

def find_window():     ...     logger.debug("returning list of window handles\                 specified windowtitle: {}".format(title)) 

so far, good, bad news is, in loggerfile:

06/25/2015 02:07:20 pm - debug - libs.window on 104 : returning list of window handles specified windowtitle: desktop: notepad

there additional whitespaces after word handles. know if this:

def find_window():     ...     logger.debug("returning list of window handles \ specified windowtitle: {}".format(title)) 

this work, looks stupid , more if u have more indentions. how avoid whitespaces in loggerfile?

logger.debug((               "returning list of window handles"               "with specified windowtitle: {}"              ).format(title)) 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -