�
�&=d � �V � d dl mZ d dl mZ ddlZddlZd dlmZ G d� de� � ZdS )� )�utils)�debbugs� N)�text_uic
�r � e Zd ZdZdZdddddddej ddf
d �Zd
� Zd� Z e
e e� � Zd� Zd
� Z
d� ZdS )� bugreportzFEncapsulates a bug report into a convenient object we can pass around.zutf-8� �debianTFr Nc � � || _ |� � � D ]\ }
}t | |
|� � �|| _ || _ |rLt |t � � s7 |j | _ n0# t $ r t j d� � t �w xY w|| _ || _
| | _ || _ || _ || _ |
| _ || _ d S )NzSInvalid value for followup, it must be a debianbts.Bugreport instance or an integer)�type�items�setattr�package�subject�
isinstance�int�bug_num�followup� Exception�ui�long_message� TypeError�body�mode�system�incfiles�sysinfo�
debsumsoutput�issource)�selfr r r r r r r r r r r �props�k�vs �5/usr/lib/python3/dist-packages/reportbug/bugreport.py�__init__zbugreport.__init__& |