parameters: (self)
docstring: Reads the blacklist from the blacklist file.
  
      Returns:
        A dict containing bad devices.
docstring_summary: Reads the blacklist from the blacklist file.
docstring_tokens: Reads the blacklist from the blacklist file .
function: def Read(self):
      """Reads the blacklist from the blacklist file.
  
      Returns:
        A dict containing bad devices.
      """
      with self._blacklist_lock:
        if not os.path.exists(self._path):
          return dict()
  
        with open(self._path, 'r') as f:
          blacklist = json.load(f)
        if not isinstance(blacklist, dict):
          logging.warning('Ignoring %s: %s (a dict was expected instead)',
                          self._path, blacklist)
          blacklist = dict()
        return blacklist
function_tokens: def Read ( self ) : with self . _blacklist_lock : if not os . path . exists ( self . _path ) : return dict ( ) with open ( self . _path , 'r' ) as f : blacklist = json . load ( f ) if not isinstance ( blacklist , dict ) : logging . warning ( 'Ignoring %s: %s (a dict was expected instead)' , self . _path , blacklist ) blacklist = dict ( ) return blacklist