Skip to content

Reading files is broken in Python 3.9 #5

@mfncooper

Description

@mfncooper

At least on Python 3.9 (I have not tested other versions), the file read loop here:

https://github.com/mumbly/PyUtils/blob/master/FileDupeFinder.py#L54

never finishes. Because the file is opened in binary mode, read() returns b'' and not '' at the end of the file. Thus the sentinel never matches, and the loop goes on forever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions