Skip to content

Commit b7feda6

Browse files
committed
Fix a type typo
1 parent 87fbb58 commit b7feda6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

fitz/fitz.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class _object:
106106

107107
VersionFitz = "1.14.0"
108108
VersionBind = "1.14.6"
109-
VersionDate = "2019-01-14 06:46:06"
110-
version = (VersionBind, VersionFitz, "20190114064606")
109+
VersionDate = "2019-01-16 04:32:29"
110+
version = (VersionBind, VersionFitz, "20190116043229")
111111

112112

113113
class Matrix():
@@ -234,7 +234,7 @@ def preRotate(self, theta):
234234

235235
def concat(self, one, two):
236236
"""Multiply two matrices and replace current one."""
237-
if not len(one) == len(Two) == 6:
237+
if not len(one) == len(two) == 6:
238238
raise ValueError("bad sequ. length")
239239
self.a, self.b, self.c, self.d, self.e, self.f = TOOLS._concat_matrix(one, two)
240240
return self
@@ -1502,7 +1502,7 @@ def getTJstr(text, glyphs, simple, ordering):
15021502
if glyphs is None: # simple and not Symbol / ZapfDingbats
15031503
otxt = "".join([hex(ord(c))[2:].rjust(2, "0") if ord(c)<256 else "3f" for c in text])
15041504
else: # Symbol or ZapfDingbats
1505-
otxt = "".join([hex(glyphs[ord(c)][0])[2:].rjust(2, "0") for c in text])
1505+
otxt = "".join([hex(glyphs[ord(c)][0])[2:].rjust(2, "0") if ord(c)<256 else "20" for c in text])
15061506
return "[<" + otxt + ">]"
15071507

15081508
if ordering < 0: # not a CJK font: use the glyphs

fitz/helper-geo-py.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Matrix():
123123

124124
def concat(self, one, two):
125125
"""Multiply two matrices and replace current one."""
126-
if not len(one) == len(Two) == 6:
126+
if not len(one) == len(two) == 6:
127127
raise ValueError("bad sequ. length")
128128
self.a, self.b, self.c, self.d, self.e, self.f = TOOLS._concat_matrix(one, two)
129129
return self

fitz/helper-python.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def getTJstr(text, glyphs, simple, ordering):
352352
if glyphs is None: # simple and not Symbol / ZapfDingbats
353353
otxt = "".join([hex(ord(c))[2:].rjust(2, "0") if ord(c)<256 else "3f" for c in text])
354354
else: # Symbol or ZapfDingbats
355-
otxt = "".join([hex(glyphs[ord(c)][0])[2:].rjust(2, "0") for c in text])
355+
otxt = "".join([hex(glyphs[ord(c)][0])[2:].rjust(2, "0") if ord(c)<256 else "20" for c in text])
356356
return "[<" + otxt + ">]"
357357

358358
if ordering < 0: # not a CJK font: use the glyphs

fitz/version.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%pythoncode %{
22
VersionFitz = "1.14.0"
33
VersionBind = "1.14.6"
4-
VersionDate = "2019-01-14 06:46:06"
5-
version = (VersionBind, VersionFitz, "20190114064606")
4+
VersionDate = "2019-01-16 04:32:29"
5+
version = (VersionBind, VersionFitz, "20190116043229")
66
%}

0 commit comments

Comments
 (0)