Rename svg_string2paths to svgstr2paths

pull/176/head
FlyingSamson 2022-05-25 19:24:50 +02:00
parent 2fc016d48f
commit 07f46d41f8
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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,

View File

@ -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)