File: //usr/lib/python3/dist-packages/twisted/python/__pycache__/fakepwd.cpython-38.pyc
U
W[� � @ s` d Z ddlmZmZ ddgZG dd� de�ZG dd� de�ZG dd � d e�ZG d
d� de�Z dS )zM
L{twisted.python.fakepwd} provides a fake implementation of the L{pwd} API.
� )�absolute_import�division�UserDatabase�ShadowDatabasec @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �_UserRecordz�
L{_UserRecord} holds the user data for a single user in L{UserDatabase}.
It corresponds to L{pwd.struct_passwd}. See that class for attribute
documentation.
c C s. || _ || _|| _|| _|| _|| _|| _d S �N��pw_nameZ pw_passwd�pw_uidZpw_gidZpw_gecos�pw_dirZpw_shell)�self�name�password�uid�gid�gecos�home�shell� r �8/usr/lib/python3/dist-packages/twisted/python/fakepwd.py�__init__ s z_UserRecord.__init__c C s dS )N� r �r r r r �__len__ s z_UserRecord.__len__c C s$ | j | j| j| j| j| j| jf| S r r �r �indexr r r �__getitem__"