Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
de29ff9b
Unverified
Commit
de29ff9b
authored
Jan 04, 2021
by
Julien Plu
Committed by
GitHub
Jan 04, 2021
Browse files
Fix open (#9368)
parent
d018afce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
utils/check_repo.py
utils/check_repo.py
+1
-1
No files found.
utils/check_repo.py
View file @
de29ff9b
...
...
@@ -315,7 +315,7 @@ def find_all_documented_objects():
""" Parse the content of all doc files to detect which classes and functions it documents"""
documented_obj
=
[]
for
doc_file
in
Path
(
PATH_TO_DOC
).
glob
(
"**/*.rst"
):
with
open
(
doc_file
)
as
f
:
with
open
(
doc_file
,
"r"
,
encoding
=
"utf-8"
,
newline
=
"
\n
"
)
as
f
:
content
=
f
.
read
()
raw_doc_objs
=
re
.
findall
(
r
"(?:autoclass|autofunction):: transformers.(\S+)\s+"
,
content
)
documented_obj
+=
[
obj
.
split
(
"."
)[
-
1
]
for
obj
in
raw_doc_objs
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment