3 ”Re ã @ sf d Z ddlZddlZyddlZW n ek r8 dZY nX dd„ ZG dd„ dejƒZejfdd„Z dS ) zONicer log formatting with colours. Code copied from Tornado, Apache licensed. é Nc C sV d} t rRttjdƒrRtjjƒ rRyt jƒ t jdƒdkr:d} W n tk rP Y nX | S )NFÚisattyÚcolorsr T)ÚcursesÚhasattrÚsysÚstderrr Z setuptermZtigetnumÚ Exception)Úcolor© r úŠ/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/colorlog.pyÚ_stderr_supports_color s r c @ s> e Zd ZdZejdejdejdejdiZ ddd„Z d d „ ZdS )ÚLogFormatterz&Log formatter with colour support é é é TNc C sÎ t jj| |d� i | _|r¾tƒ r¾tjdƒp6tjdƒp6d}d tj k oLdk n r\t |dƒ}x.| j jƒ D ] \}}t tj||ƒdƒ| j|<