scripts/mailmapper: enable running with Python 3
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 16 Sep 2021 08:59:12 +0000 (10:59 +0200)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:55 +0000 (18:50 +0300)
commit785b857d99b3cd89576c280cfa3a8349c2fb7f4c
tree0387b9ca8304c09c15119aedec14b66dab36be5b
parent577e45f36f7602905ea9fff3f7f14c33cc60e689
scripts/mailmapper: enable running with Python 3

Our mailmapper script required Python 2 which is no longer maintained.
A main difference when converting to Python 3 is that byte strings are not
character strings. So add conversion and skip over conversion errors.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
scripts/mailmapper