* updates intersphinx references for docs links (#71921) * DOCS: updates intersphinx references for docs links * TESTS: Raise the number of bytes scanned to determine if a file is binary. The newest ansible-2.10.inv file has its first null byte at position 2261. 4096 is still a cheap chunksize to read so it still makes sense to raise this. Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com> Co-authored-by: Toshio Kuratomi <a.badger@gmail.com> (cherry picked from commit27826827e9
) * adds changelog for already-merged PR (#71947) * adds changelogs/fragments/71921-raise-bytes-for-binary-test.yml Co-authored-by: Matt Clay <matt@mystile.com> (cherry picked from commit91b0dfb659
)
This commit is contained in:
parent
5282ab853d
commit
12874bbdea
9 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- ansible-test - Raise the number of bytes scanned by ansible-test to determine if a file is binary to 4096.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -500,7 +500,7 @@ def is_binary_file(path):
|
|||
|
||||
with open_binary_file(path) as path_fd:
|
||||
# noinspection PyTypeChecker
|
||||
return b'\0' in path_fd.read(2048)
|
||||
return b'\0' in path_fd.read(4096)
|
||||
|
||||
|
||||
def generate_password():
|
||||
|
|
Loading…
Reference in a new issue