-=[ Mr. Bumblebee ]=-
_Indonesia_
σ
ΨLοNc
@@ sΪ d Z d d l m Z d d l Z d d l Z d d l m Z d d l Z d d l m Z e e
d d d d d
d d d
d d d g
Z d Z d Z
d Z d Z e a d Z d Z d Z d S( s Lists of ignore files, etc.i ( t absolute_importN( t StringIO( t lazy_importsQ
from bzrlib import (
atomicfile,
config,
globbing,
trace,
)
s *.as *.os *.py[co]s *.sos *.sw[nop]s *~s .#*s [#]*#t __pycache__s bzr-orphansc C@ s t } | j } y | j d j d } Wn t k
rΉ | j d } g } xa t | D]O \ } } y | j | j d Wqc t k
r± t j d | d qc Xqc Wn XxO | D]G } | j d } | sΑ | j
d rς qΑ n | j t j
| qΑ W| S( sο Read in all of the lines in the file and turn it into an ignore list
Continue in the case of utf8 decoding errors, and emit a warning when
such and error is found. Optimise for the common case -- no decoding
errors.
t utf8s
s utf-8sA .bzrignore: On Line #%d, malformed utf8 character. Ignoring line.i s
t #( t sett readt decodet splitt UnicodeDecodeErrort enumeratet appendt tracet warningt rstript
startswitht addt globbingt normalize_pattern( t ft ignoredt ignore_filet
unicode_linest linest line_numbert line( ( s2 /usr/lib/python2.7/dist-packages/bzrlib/ignores.pyt parse_ignore_file6 s(
c C@ sΧ t j } t t } y t | d } Wn t t f k
rΆ } t | d d } | t j
f k rm n y t t Wn4 t t f k
r± } | j t j f k r² q² n X| SXz t
| SWd | j Xd S( s9 Get the list of user ignored files, possibly creating it.t rbt errnoN( t configt user_ignore_config_filenameR t
USER_DEFAULTSt opent IOErrort OSErrort getattrt NoneR t ENOENTt _set_user_ignorest EPERMR t close( t patht patternsR t et err( ( s2 /usr/lib/python2.7/dist-packages/bzrlib/ignores.pyt get_user_ignoresY s"