Skip to content

Reading files is broken in Python 3.9 #5

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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