def _ConvertAnnotations(self, annotations):
      """ Convert annotations to pyVmomi flags """
      flags = 0
      if annotations:
         for annotation in annotations:
            flags |= self._mapFlags.get(annotation.name, 0)
      return flags
def _ConvertAnnotations ( self , annotations ) : flags = 0 if annotations : for annotation in annotations : flags |= self . _mapFlags . get ( annotation . name , 0 ) return flags
Convert annotations to pyVmomi flags