code: def contents(self):
          
          if not IS_PY2 and isinstance(self.byte_contents, bytes):
              return self.byte_contents.decode(
                  self.encoding or locale.getpreferredencoding(False),
                  errors=self.errors)
          return self.byte_contents
docs: Return the contents as string with the original encoding.