X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fpython%2Fnotmuch%2Fcompat.py;h=daa268c12cfb2de49a796d2f70c074498c220ff8;hb=a5c1536d9a631f15c74602ef12a0867d278a7af0;hp=adc8d244e4f251a5c5d3edd4cae78d7a80dc695b;hpb=096c600b96e5d556b67ac01263a1364d0b8e9115;p=notmuch diff --git a/bindings/python/notmuch/compat.py b/bindings/python/notmuch/compat.py index adc8d244..daa268c1 100644 --- a/bindings/python/notmuch/compat.py +++ b/bindings/python/notmuch/compat.py @@ -65,3 +65,7 @@ else: raise TypeError('Expected str, got %s' % type(value)) return value.encode('utf-8', 'replace') + +# We import the SafeConfigParser class on behalf of other code to cope +# with the differences between Python 2 and 3. +SafeConfigParser # avoid warning about unused import