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() line = line.strip()
if not unicode_: if not unicode_:
try: try:
str.encode(line) line = str.encode(line)
except UnicodeDecodeError: except UnicodeDecodeError:
continue continue
if line: if line: