title: Error: Can't use string pattern on a byte-like object
body: <p>I am running this code using Python 3.2.3: </p>
  
  <pre><code>regex = '&lt;title&gt;(.+?)&lt;/title&gt;'
  pattern = re.compile(regex)
  </code></pre>
  
  <p>and then searching the pattern using findall:</p>
  
  <pre><code>titles = re.findall(pattern,html)
  print(titles)
  </code></pre>
  
  <p>html object gets html code from a specific url. </p>
  
  <pre><code>html = response.read()
  </code></pre>
  
  <p>I get the error "Can't use string pattern on a byte-like object". I have tried using:</p>
  
  <pre><code>regex = b'&lt;title&gt;(.+?)&lt;/title&gt;'
  </code></pre>
  
  <p>but that appends a "b" to my results? Thanks. </p>