/usr/local/lib/python3.9/site-packages/django/core/management/commands/__pycache__
a Ӱ�h� � @ s0 d dl mZ dd� fdd�ZG dd� de�ZdS ) � )�BaseCommandc C s | � d�p| �� S )N�_)� startswith�isupper)�k� r �V/usr/local/lib/python3.9/site-packages/django/core/management/commands/diffsettings.py�<lambda> � r c s � �fdd�t � �D �S )z2Convert a module namespace to a Python dictionary.c s$ i | ]}�|�s|t t� |���qS r )�repr�getattr)�.0r ��moduleZ omittabler r � <dictcomp> r z"module_to_dict.<locals>.<dictcomp>)�dirr r r r �module_to_dict s r c @ s4 e Zd ZdZg Zdd� Zdd� Zdd� Zdd � Zd S )�CommandzWDisplays differences between the current settings.py and Django's default settings.c C s6 |j dddd� |j dddd� |j d d ddd � d S )Nz--all� store_truezfDisplay all settings, regardless of their value. In "hash" mode, default values are prefixed by "###".)�action�helpz --default�MODULEzvThe settings module to compare the current settings against. Leave empty to compare against Django's default settings.)�metavarr z--output�hash�r Zunifieda Selects the output format. 'hash' mode displays each changed setting, with the settings that don't appear in the defaults followed by ###. 'unified' mode prefixes the default setting with a minus sign, followed by the changed setting prefixed with a plus sign.)�default�choicesr )�add_argument)�self�parserr r r � add_arguments s ���zCommand.add_argumentsc K sv ddl m}m}m} |js"|�� t|j�}|d }t|rB||�n|�}| j| j d�|d }d� |||fi |���S )Nr )�Settings�global_settings�settingsr r �output� )Zdjango.confr! r"