a
�*�^u. � @ s� d Z ddlmZ ddlZddlZddlZddlZddlmZ m
Z
mZmZm
Z ddlmZ ddlmZmZ ddlmZ d d
� Zdd� Zd%dd�ZG dd� de�ZG dd� de�Zdd� Zdd� Zdd� Zdd� Zd&dd�Z dd� Z!d d!� Z"d'd#d$�Z#dS )(a� Extract docstrings from Bazaar commands.
This module only handles breezy objects that use strings not directly wrapped
by a gettext() call. To generate a complete translation template file, this
output needs to be combined with that of xgettext or a similar command for
extracting those strings, as is done in the bzr Makefile. Sorting the output
is also left to that stage of the process.
� )�absolute_importN� )�commands�errors�help_topics�option�plugin)�PY3)�mutter�note)�gettextc C s0 | � dd�� dd�� dd�� dd�� d d
�} | S )N�\z\\�
z\n�
z\r� z\t�"z\")�replace)�s� r �3/usr/lib/python3/dist-packages/breezy/export_pot.py�_escape3 s ����r c C sf | � d�}t|�dkr(dt| � d } n:|d sF|d= |d d |d<