code: def file(self, filename):
          
          try:  # attempt python3 approach first
              if isinstance(filename, bytes):
                  bi = filename
              else:
                  bi = bytes(filename, 'utf-8')
              return str(_file(self._magic_t, bi), 'utf-8')
          except:
              return _file(self._magic_t, filename.encode('utf-8'))
docs: Returns a textual description of the contents of the argument passed
          as a filename or None if an error occurred and the MAGIC_ERROR flag
          is set.  A call to errno() will return the numeric error code.