Skip to content

python3 #18

Description

@Liso77

Example in readme.rst is based on python2

b'Python rocks!' is better than 'Python rocks!' .

Couldn't we also translate str to bytes where it is appropriate?

    if winname is not None:
            if isinstance(winname, str):  # checking python version is probably not necessary
                    winname = winname.encode(self.encoding)  # default encoding could be utf8 or maybe latin1 ... 
            search.winname = winname
            search.searchmask |= SEARCH_NAME

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