title: How to get rid of the single quotes around the representation of a string?
body: <p>This sample code prints the representation of a line from a file. It allows its contents to be viewed, including control characters like <code>'\n'</code>, on a single line—so we refer to it as the "raw" output of the line.</p>
  
  <pre><code>print("%r" % (self.f.readline()))
  </code></pre>
  
  <p>The output, however, appears with <code>'</code> characters added to each end which aren't in the file.</p>
  
  <p><code>'line of content\n'</code></p>
  
  <p>How to get rid of the single quotes around the output?<br>
  (Behavior is the same in both Python 2.7 and 3.6.)</p>