Commit 610d9e18 authored by Antoine Millet's avatar Antoine Millet
Browse files

Implemented a workaround for a Pypy encoding lookup error

parent 35b1c0a1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -55,6 +55,13 @@ DEFAULT_CONFIGURATION = {
}


# WORKAROUND ENCODING LOOKUP
import codecs
codecs.lookup('string-escape')
codecs.lookup('raw-unicode-escape')
# END OF WORKAROUND


class EncodingFormatter(logging.Formatter, object):

    def __init__(self, fmt=None, datefmt=None, encoding='utf-8'):