svg/charts/graph.py
def parse_css(self):
		"""
		Take a .css file (classes only please) and parse it into a dictionary
		of class/style pairs.
		"""
		# todo: save the prefs for use later
		# orig_prefs = cssutils.ser.prefs
		cssutils.ser.prefs.useMinified()
		pairs = (
			(r.selectorText, r.style.cssText)
			for r in self.get_stylesheet()
			if not isinstance(r, cssutils.css.CSSComment)
		)
		return dict(pairs)
def parse_css(self):
		"""
		Take a .css file (classes only please) and parse it into a dictionary
		of class/style pairs.
		"""
		# todo: save the prefs for use later
		# orig_prefs = cssutils.ser.prefs
		cssutils.ser.prefs.useMinified()
		pairs = (
			(r.selectorText, r.style.cssText)
			for r in self.get_stylesheet()
			if not isinstance(r, cssutils.css.CSSComment)
		)
		return dict(pairs)
def parse_css ( self ) : # todo: save the prefs for use later # orig_prefs = cssutils.ser.prefs cssutils . ser . prefs . useMinified ( ) pairs = ( ( r . selectorText , r . style . cssText ) for r in self . get_stylesheet ( ) if not isinstance ( r , cssutils . css . CSSComment ) ) return dict ( pairs )
Take a .css file (classes only please) and parse it into a dictionary
		of class/style pairs.
Take a . css file ( classes only please ) and parse it into a dictionary of class / style pairs .