Rename svg_string2paths to svgstr2paths
parent
2fc016d48f
commit
07f46d41f8
|
@ -17,6 +17,6 @@ from .document import (Document, CONVERSIONS, CONVERT_ONLY_PATHS,
|
|||
from .svg_io_sax import SaxDocument
|
||||
|
||||
try:
|
||||
from .svg_to_paths import svg2paths, svg2paths2, svg_string2paths, svg_string2paths2
|
||||
from .svg_to_paths import svg2paths, svg2paths2, svgstr2paths
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
@ -258,7 +258,7 @@ def svg2paths2(svg_file_location,
|
|||
convert_rectangles_to_paths=convert_rectangles_to_paths)
|
||||
|
||||
|
||||
def svg_string2paths(svg_string,
|
||||
def svgstr2paths(svg_string,
|
||||
return_svg_attributes=False,
|
||||
convert_circles_to_paths=True,
|
||||
convert_ellipses_to_paths=True,
|
||||
|
|
|
@ -94,6 +94,6 @@ class TestSVG2Paths(unittest.TestCase):
|
|||
# read entire file into string
|
||||
file_content = file.read()
|
||||
|
||||
paths, _ = svg_string2paths(file_content)
|
||||
paths, _ = svgstr2paths(file_content)
|
||||
|
||||
self.assertEqual(len(paths), 2)
|
||||
|
|
Loading…
Reference in New Issue