mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Merge 51f8cc8ff0 into 78818b90cd
This commit is contained in:
commit
f8de2e4621
6 changed files with 9 additions and 14 deletions
|
|
@ -57,7 +57,7 @@ def main(argv=None):
|
|||
retv = 0
|
||||
|
||||
for filename in args.filenames:
|
||||
contents = io.open(filename).read()
|
||||
contents = open(filename).read()
|
||||
retv |= check_docstring_first(contents, filename=filename)
|
||||
|
||||
return retv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue