(self)
Iterate on the current sample's WMI Objects and format the property values.
Iterate on the current sample's WMI Objects and format the property values.
Iterate on the current sample s WMI Objects and format the property values .
def __iter__(self):
        """
        Iterate on the current sample's WMI Objects and format the property values.
        """
        # No data is returned while sampling
        if self._sampling:
            raise TypeError(u"Sampling `WMISampler` object is not iterable")

        if self.is_raw_perf_class:
            # Format required
            for previous_wmi_object, current_wmi_object in zip(self._previous_sample, self._current_sample):
                formatted_wmi_object = self._format_property_values(previous_wmi_object, current_wmi_object)
                yield formatted_wmi_object
        else:
            #  No format required
            for wmi_object in self._current_sample:
                yield wmi_object
def __iter__ ( self ) : # No data is returned while sampling if self . _sampling : raise TypeError ( u"Sampling `WMISampler` object is not iterable" ) if self . is_raw_perf_class : # Format required for previous_wmi_object , current_wmi_object in zip ( self . _previous_sample , self . _current_sample ) : formatted_wmi_object = self . _format_property_values ( previous_wmi_object , current_wmi_object ) yield formatted_wmi_object else : #  No format required for wmi_object in self . _current_sample : yield wmi_object