title: Test if byte is empty in python
body: <p>I'd like to test the content of a variable containing a byte in a way like this: </p>
  
  <pre><code>line = []
  while True:
      for c in self.ser.read(): # read() from pySerial
          line.append(c)
          if c == binascii.unhexlify('0A').decode('utf8'):
              print("Line: " + line)
              line = []
              break
  </code></pre>
  
  <p>But this does not work...
  I'd like also to test, if a byte is empty:
  In this case</p>
  
  <pre><code>print(self.ser.read())
  </code></pre>
  
  <p>prints: b'' (with two single quotes)</p>
  
  <p>I do not until now succeed to test this</p>
  
  <pre><code>if self.ser.read() == b''
  </code></pre>
  
  <p>or what ever always shows a syntax error...</p>
  
  <p>I know, very basic, but I don't get it...</p>