o
    ["<f]
  ã                   @   s0  d dl mZ d dlZd dlmZmZmZmZ zd dlm	Z
 W n ey-   d dlm
Z
 Y nw e
Z	zd dlmZ W n eyC   eZY nw z
d dlmZ dZW n ey[   eZd	ZY nw z
d d
lmZ dZW n eys   eZd	ZY nw G dd„ deƒZG dd„ deƒZG dd„ deeƒZG dd„ deeƒZdS )é    )Úmake_optionN)Ú
AppCommandÚBaseCommandÚCommandErrorÚLabelCommand)Úclose_old_connections)Úclose_connection)ÚMiddlewareMixin)ÚValuesQuerySetTF)ÚValuesListQuerySetc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚProxyParserz>Faux parser object that will ferry our arguments into options.c                 C   s
   || _ d S ©N)Úcommand)Úselfr   © r   úA/var/www/html/kck/venv/lib/python3.10/site-packages/django_six.pyÚ__init__0   s   
zProxyParser.__init__c                 O   s    | j  jt|i |¤Žf7  _d S r   )r   Úoption_listr   )r   ÚargsÚkwargsr   r   r   Úadd_argument3   s    zProxyParser.add_argumentN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   -   s    r   c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚCompatibilityBaseCommandav  Provides a compatibility between optparse and argparse transition.
    Starting in Django 1.8, argparse is used. In Django 1.9, optparse support will be removed.
    For optparse, you append to the option_list class attribute.
    For argparse, you must define add_arguments(self, parser).
    BaseCommand uses the presence of option_list to decide what course to take.
    c                    sH   t jdk rt| dƒrtj| _t| ƒ}|  |¡ tt| ƒj	|i |¤Ž d S )N)é   é   Úadd_arguments)
ÚdjangoÚVERSIONÚhasattrr   r   r   r   Úsuperr   r   )r   r   r   Úparser©Ú	__class__r   r   r   ?   s
   
z!CompatibilityBaseCommand.__init__)r   r   r   r   r   Ú__classcell__r   r   r$   r   r   7   s    r   c                   @   ó   e Zd ZdZdS )ÚCompatibilityAppCommandz?AppCommand is a BaseCommand sub-class without its own __init__.N©r   r   r   r   r   r   r   r   r(   G   ó    r(   c                   @   r'   )ÚCompatibilityLabelCommandzALabelCommand is a BaseCommand sub-class without its own __init__.Nr)   r   r   r   r   r+   K   r*   r+   )Úoptparser   r   Údjango.core.management.baser   r   r   r   Ú	django.dbr   r   ÚImportErrorÚdjango.utils.deprecationr	   ÚobjectÚdjango.db.models.queryr
   ÚSupport_ValuesQuerySetÚtyper   ÚSupport_ValuesListQuerySetr   r   r(   r+   r   r   r   r   Ú<module>   s@   ÿýþþ
