Merge branch 'master' into PyPI
commit
d9f5a2a781
|
@ -259,9 +259,7 @@ class Document:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_svg_string(cls, svg_string):
|
def from_svg_string(cls, svg_string):
|
||||||
"""Factory method for creating a document from a string holding a svg
|
"""Constructor for creating a Document object from a string."""
|
||||||
object
|
|
||||||
"""
|
|
||||||
# wrap string into StringIO object
|
# wrap string into StringIO object
|
||||||
svg_file_obj = StringIO(svg_string)
|
svg_file_obj = StringIO(svg_string)
|
||||||
# create document from file object
|
# create document from file object
|
||||||
|
|
Loading…
Reference in New Issue