o $¼"b·ã@sˆdZddlmZddlmZmZmZmZzddlmZWne y*d dd„ZYnwz dd lm Z Wd Se yCd d d „Z Yd Sw)z™Backward compatibility layer with older version of six. This is used to avoid virtualenv requring a version of six newer than what the system may have. é)Úabsolute_import)ÚPY2ÚPY3Ú binary_typeÚ text_type)Ú ensure_textúutf-8ÚstrictcCs4t|tƒr | ||¡St|tƒr|Stdt|ƒƒ‚)zÎCoerce *s* to six.text_type. For Python 2: - `unicode` -> `unicode` - `str` -> `unicode` For Python 3: - `str` -> `str` - `bytes` -> decoded to `str` únot expecting type '%s')Ú isinstancerÚdecoderÚ TypeErrorÚtype©ÚsÚencodingÚerrors©rú5/usr/lib/python3/dist-packages/virtualenv/util/six.pyrs  r)Ú ensure_strcCsZt|ttfƒstdt|ƒƒ‚trt|tƒr| ||¡}|Str+t|tƒr+| ||¡}|S)zÉCoerce *s* to `str`. For Python 2: - `unicode` -> encoded to `str` - `str` -> `str` For Python 3: - `str` -> `str` - `bytes` -> decoded to `str` r ) r rrr rrÚencoderr rrrrr#s  þ rN)rr ) Ú__doc__Ú __future__rÚsixrrrrrÚ ImportErrorrrrrrÚs  þ þ