minor update

This commit is contained in:
Miroslav Stampar 2010-11-23 15:33:13 +00:00
parent 78024eafe0
commit c4414df594

View File

@ -1345,7 +1345,7 @@ def getFileItems(filename, commentPrefix='#', unicode_=True):
line = line.strip()
if not unicode_:
try:
str.encode(line)
line = str.encode(line)
except UnicodeDecodeError:
continue
if line: