Ñò
€Kc @ s† d Z d d k Z d d k Z d d k Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e
d j o e e i d
ƒ n d S( s8 Functions for converting from DOS to UNIX line endings
iÿÿÿÿNc C s´ t i i | ƒ o | Gd GHd St | d ƒ i ƒ } d | j o | Gd GHd St i d d | ƒ } | | j o4 d G| GHt | d ƒ } | i | ƒ | i ƒ | S| Gd
GHd S( sF Replace CRLF with LF in argument files. Print names of changed files.s
Directory!Nt rbt s Binary!s
s
s dos2unix:t wbt ok( t ost patht isdirt opent readt ret subt writet close( t filet datat newdatat f( ( sB /usr/lib64/python2.6/site-packages/numpy/distutils/line_endings.pyt dos2unix s
c C sT xM | D]E } t i i | | ƒ } t | ƒ } | d j o | i | ƒ q q Wd S( N( R R t joinR t Nonet append( t modified_filest dir_namet
file_namesR
t full_path( ( sB /usr/lib64/python2.6/site-packages/numpy/distutils/line_endings.pyt dos2unix_one_dir s
c C s g } t i i | t | ƒ | S( N( R R t walkR ( R R ( ( sB /usr/lib64/python2.6/site-packages/numpy/distutils/line_endings.pyt dos2unix_dir" s c C sÉ t i i | ƒ o | Gd GHd St | d ƒ i ƒ } d | j o | Gd GHd St i d d | ƒ } t i d d | ƒ } | | j o4 d G| GHt | d ƒ } | i | ƒ | i ƒ | S| Gd
GHd S( sF Replace LF with CRLF in argument files. Print names of changed files.s
Directory!NR R s Binary!s
s
s unix2dos:R R ( R R R R R R R
R R ( R
R R R ( ( sB /usr/lib64/python2.6/site-packages/numpy/distutils/line_endings.pyt unix2dos( s
c C sR xK | D]C } t i i | | ƒ } t | ƒ | d j o | i | ƒ q q Wd S( N( R R R R R R ( R R R R
R ( ( sB /usr/lib64/python2.6/site-packages/numpy/distutils/line_endings.pyt unix2dos_one_dir= s
c C s g } t i i | t | ƒ | S( N( R R R R ( R R ( ( sB /usr/lib64/python2.6/site-packages/numpy/distutils/line_endings.pyt unix2dos_dirD s t __main__i ( t __doc__t sysR R R R R R R R t __name__t argv( ( ( sB /usr/lib64/python2.6/site-packages/numpy/distutils/line_endings.pyt