pep8 - Spliting Python string interpolation onto multiple lines -


i've got logging statement, like:

get_logger().info(     'logger logging %s because need log it.' % response['foo']['bar'] ) 

with indentation comes out on 80 rows. if split around %, fine.

how can split multiple lines. (ideally without putting response['foo']['bar'] variable)

get_logger().info(     'logger logging %s because need log it.'      % response['foo']['bar'] ) 

Comments

Popular posts from this blog

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -