ó x”þfc@sãdZddlZddlZd„Zd„ZejdƒjZxšejdƒD]‰\Z Z Z de kr}e j dƒnx[e D]SZ ee ƒr„dee e ƒkr×ejje e ƒZejd eƒq×q„q„WqRWdS( sÏ SVN helper script. Try to set the svn:eol-style property to "native" on every .py, .txt, .c and .h file in the directory tree rooted at the current directory. Files with the svn:eol-style property already set (to anything) are skipped. svn will itself refuse to set this property on a file that's not under SVN control, or that has a binary mime-type property set. This script inherits that behavior, and passes on whatever warning message the failing "svn propset" command produces. In the Python project, it's safe to invoke this script from the root of a checkout. No output is produced for files that are ignored. For a file that gets svn:eol-style set, output looks like: property 'svn:eol-style' set on 'Lib\ctypes\__init__.py' For a file not under version control: svn: warning: 'patch-finalizer.txt' is not under version control and for a file with a binary mime-type property: svn: File 'Lib est est_pep263.py' has binary mime type property iÿÿÿÿNcCs½tjj|dd|dƒ}y4tttjj|ddƒƒjƒjƒƒ}Wntk rggSX|d kr°tjj|dd|dƒtjj|dd|dƒgStd ‚dS( Ns.svntpropss .svn-worktformatii s prop-bases .svn-basesUnknown repository format(ii ( tostpathtjointinttopentreadtstriptIOErrort ValueError(troottfntdefaultR((s,/usr/lib64/python2.7/Tools/scripts/svneol.pyt propfiles$s4   c Csg}xt||ƒD]ý}yt|ƒ}Wntk rBqnXxÃ|jƒ}|jdƒrePn|jdƒszt‚t|jƒdƒ}|j|ƒ}|j |ƒ|jƒ|jƒ}|jdƒs×t‚t|jƒdƒ}|j|ƒ}|jƒqF|j ƒqW|S(s=Return a list of property names for file fn in directory roottENDsK isV ( RRR treadlinet startswithtAssertionErrorRtsplitRtappendtclose( R R tresultRtftlinetLtkeytvalue((s,/usr/lib64/python2.7/Tools/scripts/svneol.pytproplist1s,      s\.([hc]|py|txt|sln|vcproj)$t.s.svns svn:eol-styles%svn propset svn:eol-style native "%s"(t__doc__treRRRtcompiletsearchtpossible_text_filetwalkR tdirstfilestremoveR RRtsystem(((s,/usr/lib64/python2.7/Tools/scripts/svneol.pyts   !