File: //lib/python3.6/site-packages/gyp/__pycache__/ninja_syntax.cpython-36.opt-1.pyc
3
��S]M � @ s8 d Z ddlZddlZdd� ZG dd� de�Zdd� ZdS ) z�Python module for generating .ninja files.
Note that this is emphatically not a required piece of Ninja; it's
just a helpful utility for build-file-generation systems that already
use Python.
� Nc C s | j dd�j dd�j dd�S )Nz$ z$$ � �:z$:)�replace)Zword� r �"/usr/lib/python3.6/ninja_syntax.py�escape_path s r c @ s~ e Zd Zddd�Zdd� Zdd� Zd d d
�Zdd� Zd!dd�Zd"dd�Z dd� Z
dd� Zdd� Zdd� Z
d#dd�Zdd� Zd
S )$�Writer�N c C s || _ || _d S )N)�output�width)�selfr
r r r r �__init__ s zWriter.__init__c C s | j jd� d S )N�
)r
�write)r r r r �newline s zWriter.newlinec C s4 x.t j|| jd �D ]}| jjd| d � qW d S )N� z# r )�textwrapZwrapr r
r )r �text�liner r r �comment s zWriter.commentr c C s>