Mercurial > hg
comparison hgext/eol.py @ 17501:26dd532456cf
spelling: Macintosh
author | timeless@mozdev.org |
---|---|
date | Fri, 17 Aug 2012 13:58:18 -0700 |
parents | 38caf405d010 |
children | 4ae21a7568f3 |
comparison
equal
deleted
inserted
replaced
17500:8ac8db8dc346 | 17501:26dd532456cf |
---|---|
97 testedwith = 'internal' | 97 testedwith = 'internal' |
98 | 98 |
99 # Matches a lone LF, i.e., one that is not part of CRLF. | 99 # Matches a lone LF, i.e., one that is not part of CRLF. |
100 singlelf = re.compile('(^|[^\r])\n') | 100 singlelf = re.compile('(^|[^\r])\n') |
101 # Matches a single EOL which can either be a CRLF where repeated CR | 101 # Matches a single EOL which can either be a CRLF where repeated CR |
102 # are removed or a LF. We do not care about old Machintosh files, so a | 102 # are removed or a LF. We do not care about old Macintosh files, so a |
103 # stray CR is an error. | 103 # stray CR is an error. |
104 eolre = re.compile('\r*\n') | 104 eolre = re.compile('\r*\n') |
105 | 105 |
106 | 106 |
107 def inconsistenteol(data): | 107 def inconsistenteol(data): |