Skip to content

Byte literals in front of words with python 3 #10

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'."

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