Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets

Fix incorrect <use> tag in <defs> (#134)

authored by

Casey Duckering and committed by
GitHub
9ad33444 cad62e9d

+1 -3
+1 -3
drawsvg/drawing.py
··· 262 262 id_index += 1 263 263 return id_str 264 264 id_map = defaultdict(id_gen) 265 - prev_set = set((id(defn) for defn in self.other_defs)) 266 - prev_list = [] 265 + prev_set = set() 267 266 def is_duplicate(obj): 268 267 nonlocal prev_set 269 268 dup = id(obj) in prev_set 270 269 prev_set.add(id(obj)) 271 - prev_list.append(obj) 272 270 return dup 273 271 for element in self.other_defs: 274 272 if hasattr(element, 'write_svg_element'):