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