Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions svg2mod/svg/svg/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ class Group(Transformable):

def __init__(self, elt=None):
Transformable.__init__(self, elt)

self.name = ""
if elt is not None:

for id, value in elt.attrib.iteritems():

id = self.parse_name( id )
Expand Down Expand Up @@ -401,7 +401,7 @@ def parse(self, pathstr):
# Close Path
l = Segment(current_pt, start_pt)
self.items.append(l)

current_pt = start_pt

elif command in 'LHV':
# LineTo, Horizontal & Vertical line
Expand Down Expand Up @@ -708,4 +708,3 @@ def default(self, obj):
tag = getattr(cls, 'tag', None)
if tag:
svgClass[svg_ns + tag] = cls