for x, source_file in mylines:
#the split/join thing removes leading and trailing whitespace, and converts any whitespace in the line
#into single spaces.
- myline = _unicode_decode(' ').join(x.split())
- if not len(myline):
+ myline = x.split()
+ if x and x[0] != "#":
+ mylinetemp = []
+ for item in myline:
+ if item[:1] != "#":
+ mylinetemp.append(item)
+ else:
+ break
+ myline = mylinetemp
+
+ myline = " ".join(myline)
+ if not myline:
continue
if myline[0]=="#":
# Check if we have a compat-level string. BC-integration data.
myline=x.split()
mylinetemp = []
for item in myline:
- if not item.startswith('#'):
+ if item[:1] != "#":
mylinetemp.append(item)
else:
break