Skip to content

compatability with python3 #6

@gelidelacruz

Description

@gelidelacruz

I encountered two issues when using this extension with python3:

1. NameError: name 'unicode' is not defined
Referencing here, python3 has renamed the unicode type to str. It'll work with python3 by adding this:

import sys
if sys.version_info[0] >= 3:
    unicode = str

2. TypeError: can only concatenate str (not "bytes") to str
Another error appeared after adding no.1. prio is in string format and can't be concatenated with msg that is in bytes. To fix it, we have to also convert prio to bytes.

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