summaryrefslogtreecommitdiff
path: root/dedup/__init__.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2016-04-28 21:35:42 +0200
committerHelmut Grohne <helmut@subdivi.de>2016-04-28 21:35:42 +0200
commit8e326cadab47896f77666b0a4c7f434cdefc83da (patch)
tree7691ac50e247be2c1db9e70f4379cb3165d9fef5 /dedup/__init__.py
parent9ad30297a535a8a8f9bdc945288b02d75a379cb6 (diff)
downloaddebian-dedup-8e326cadab47896f77666b0a4c7f434cdefc83da.tar.gz
support Python 3.x in importpkg
In Python 2.x, TarInfo.name is a bytes object. In Python 3.x, TarInfo.name always is a unicode object. To avoid importpkg crashing with an exception, we direct the Python 3.x decoding to use surrogateescapes. Thus decoding the name boils down to checking whether it contains surrogates.
Diffstat (limited to 'dedup/__init__.py')
0 files changed, 0 insertions, 0 deletions