Current File : //usr/lib/python3/dist-packages/pip/_vendor/urllib3/__pycache__/fields.cpython-312.pyc |
�
/�g�! � � � d dl mZ d dlZd dlZd dlZddlmZ dd�Zd� Z ddd �Z
e
j ed d
� D � ci c]( } | dvr" ej | � dj | � ��* c} � d
� Zd� ZeZ G d� de� Zyc c} w )� )�absolute_importN� )�sixc �B � | rt j | � d xs |S |S )z�
Guess the "Content-Type" of a file.
:param filename:
The filename to guess the "Content-Type" of using :mod:`mimetypes`.
:param default:
If no "Content-Type" can be guessed, default to `default`.
r )� mimetypes�
guess_type)�filename�defaults �</usr/lib/python3/dist-packages/pip/_vendor/urllib3/fields.py�guess_content_typer
s'