Commits

Jason R. Coombs committed 6bdf814

Fixed issue in css stream loading under Python 3

  • Participants
  • Parent commits 0e7361f

Comments (0)

Files changed (1)

svg/charts/graph.py

 	@staticmethod
 	def load_resource_stylesheet(name, subs=dict()):
 		css_stream = pkg_resources.resource_stream('svg.charts', name)
-		css_string = css_stream.read()
+		css_string = css_stream.read().decode('utf-8')
 		css_string = css_string % subs
 		sheet = cssutils.parseString(css_string)
 		return sheet