Skip to content

Commit 5f9bf8e

Browse files
committed
correcting typos
1 parent c3995db commit 5f9bf8e

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

fitz/fitz.i

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ if len(pyliste) == 0 or min(pyliste) not in range(len(self)) or max(pyliste) not
16701670
}
16711671
16721672
//---------------------------------------------------------------------
1673-
// Check: is this an AcroForm with at least one field?
1673+
// Return the /SigFlags value
16741674
//---------------------------------------------------------------------
16751675
CLOSECHECK0(getSigFlags)
16761676
int getSigFlags()
@@ -2338,7 +2338,6 @@ if len(pyliste) == 0 or min(pyliste) not in range(len(self)) or max(pyliste) not
23382338
23392339
self.setToC(new_toc)
23402340
self._reset_page_refs()
2341-
Py_RETURN_NONE
23422341
23432342
23442343
def deletePageRange(self, from_page = -1, to_page = -1):
@@ -2368,7 +2367,6 @@ if len(pyliste) == 0 or min(pyliste) not in range(len(self)) or max(pyliste) not
23682367
23692368
self.setToC(new_toc)
23702369
self._reset_page_refs()
2371-
Py_RETURN_NONE
23722370
23732371
def saveIncr(self):
23742372
""" Save PDF incrementally"""
@@ -5970,7 +5968,7 @@ CheckParent(self)
59705968
def widget(self):
59715969
annot_type = self.type[0]
59725970
if annot_type != ANNOT_WIDGET:
5973-
Py_RETURN_NONE
5971+
return None
59745972
w = Widget()
59755973
w.field_type = self.widget_type[0]
59765974
w.field_type_string = self.widget_type[1]

fitz/helper-python.i

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,15 +563,14 @@ def CheckFont(page, fontname):
563563
return f
564564
if f[3].lower() == fontname.lower():
565565
return f
566-
Py_RETURN_NONE
567566

568567
def CheckFontInfo(doc, xref):
569568
"""Return a font info if present in the document.
570569
"""
571570
for f in doc.FontInfos:
572571
if xref == f[0]:
573572
return f
574-
Py_RETURN_NONE
573+
575574

576575
def UpdateFontInfo(doc, info):
577576
xref = info[0]

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.19"
4-
VersionDate = "2019-07-18 20:01:17"
5-
version = (VersionBind, VersionFitz, "20190718200117")
4+
VersionDate = "2019-07-21 03:55:10"
5+
version = (VersionBind, VersionFitz, "20190721035510")
66
%}

0 commit comments

Comments
 (0)