make mergejs parsing more resilient to various line ending formats. this
makes building work on windows again. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -117,9 +117,9 @@ class Config:
|
|||||||
"""
|
"""
|
||||||
Parses the content of the named file and stores the values.
|
Parses the content of the named file and stores the values.
|
||||||
"""
|
"""
|
||||||
lines = [line[:-1] # Assumes end-of-line character is present
|
lines = [line.strip() # Assumes end-of-line character is present
|
||||||
for line in open(filename)
|
for line in open(filename)
|
||||||
if line != "\n"] # Skip blank lines
|
if line.strip()] # Skip blank lines
|
||||||
|
|
||||||
self.forceFirst = lines[lines.index("[first]") + 1:lines.index("[last]")]
|
self.forceFirst = lines[lines.index("[first]") + 1:lines.index("[last]")]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user