o ƚRe@shdZddlZzddlmZWneyddlmZYnwddZddZedkr2e ed dSdS) z webencodings.mklabels ~~~~~~~~~~~~~~~~~~~~~ Regenarate the webencodings.labels module. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. N)urlopencCs||ksJ|SN)lower)stringr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/webencodings/mklabels.py assert_lowersrcsfdg}ddtt|dD}tdd|D|fdd|D|dd |S) Na""" webencodings.labels ~~~~~~~~~~~~~~~~~~~ Map encoding labels to their name. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. """ # XXX Do not edit! # This file is automatically generated by mklabels.py LABELS = { cSsLg|]"}|dD]}|dD]}tt|dt|ddfqqqS) encodingslabelsuname)reprrlstrip).0categoryencodinglabelrrr ,s zgenerate..asciicss|] \}}t|VqdSrlenrrr rrr 2szgenerate..c3s.|]\}}d|dt||fVqdS)z %s:%s %s,  Nrrmax_lenrrr3s  }) jsonloadsrreaddecodemaxextendappendjoin)urlpartsr rrrgenerates  r(__main__z.http://encoding.spec.whatwg.org/encodings.json) __doc__rurllibr ImportErrorurllib.requestrr(__name__printrrrrs  !