mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
oops
This commit is contained in:
parent
3bece11b09
commit
690ba43dcc
@ -70,12 +70,11 @@ def svg_path_to_painter_path(d):
|
|||||||
# x1/y1 and x2/y2 = bezier control points
|
# x1/y1 and x2/y2 = bezier control points
|
||||||
x = y = x1 = y1 = x2 = y2 = 0
|
x = y = x1 = y1 = x2 = y2 = 0
|
||||||
|
|
||||||
data = d
|
if isinstance(d, unicode_type):
|
||||||
if isinstance(data, unicode_type):
|
d = d.encode('ascii')
|
||||||
data = data.encode('ascii')
|
d = d.replace(b',', b' ').replace(b'\n', b' ')
|
||||||
data = d.replace(b',', b' ').replace(b'\n', b' ')
|
end = len(d)
|
||||||
end = len(data)
|
data = ReadOnlyFileBuffer(d)
|
||||||
data = ReadOnlyFileBuffer(data)
|
|
||||||
|
|
||||||
def parse_float():
|
def parse_float():
|
||||||
chars = []
|
chars = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user