def dumb_property_dict(style):
 return dict([(x.strip(), y.strip()) for (x, y) in [z.split(':', 1) for z in style.split(';') if (':' in z)]])

def dumb_property_dict ( style ) : return dict ( [ ( x . strip ( ) , y . strip ( ) ) for ( x , y ) in [ z . split ( ':' , 1 ) for z in style . split ( ';' ) if ( ':' in z ) ] ] )
returns a hash of css attributes .