Skip to content

Byte literals in front of words with python 3 #10

@rogg

Description

@rogg

resource_string() from pkg_resources opens dictionary.txt as 'rb', which puts byte literals in front of all the words when using python 3.

>>> get_sentence()
"B'cras' b'mi' b'a' b'vulputate' b'arcu'."

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