pnijhara / gitsome

Unnecessary semicolon PYL-W0301
Style
Minor
4 years ago4 years old
105
106def dumb_property_dict(style):
107    """returns a hash of css attributes"""
108    return dict([(x.strip(), y.strip()) for x, y in [z.split(':', 1) for z in style.split(';') if ':' in z]]);109
110def dumb_css_parser(data):
111    """returns a hash of css selectors, each of which contains a hash of css attributes"""