giphypop.py
def _normalized(self, data):
        """
        Does a normalization of sorts on image type data so that values
        that should be integers are converted from strings
        """
        int_keys = ('frames', 'width', 'height', 'size')

        for key in int_keys:
            if key not in data:
                continue

            try:
                data[key] = int(data[key])
            except ValueError:
                pass  # Ignored

        return data
def _normalized(self, data):
        int_keys = ('frames', 'width', 'height', 'size')

        for key in int_keys:
            if key not in data:
                continue

            try:
                data[key] = int(data[key])
            except ValueError:
                pass  # Ignored

        return data
def _normalized ( self , data ) : int_keys = ( 'frames' , 'width' , 'height' , 'size' ) for key in int_keys : if key not in data : continue try : data [ key ] = int ( data [ key ] ) except ValueError : pass # Ignored return data
Does a normalization of sorts on image type data so that values
        that should be integers are converted from strings
Does a normalization of sorts on image type data so that values that should be integers are converted from strings