~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/models.py

  • Committer: Matthew Scott
  • Date: 2013-08-15 19:25:39 UTC
  • mto: This revision was merged to the branch mainline in revision 350.
  • Revision ID: matthew.scott@canonical.com-20130815192539-6wz7duo1321wypm1
Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
922
922
                width = root.get('width')
923
923
                height = root.get('height')
924
924
                if width is None or height is None:
925
 
                    logger.warn("SVG is malformed: " \
926
 
                        + "width or height attributes not set")
 
925
                    logger.warn("SVG is malformed: "
 
926
                                + "width or height attributes not set")
927
927
                    return
928
928
                root.attrib['viewBox'] = "0 0 {0} {1}".format(width, height)
929
929
                file_content = ElementTree.tostring(root, encoding='UTF-8')