bug 348731, make encoding errors produce comparison errors

This commit is contained in:
axel%pike.org 2006-08-25 15:04:28 +00:00
parent f100547e2f
commit ad45cd58c5

View File

@ -53,6 +53,7 @@ class Parser:
self.contents = f.read()
except UnicodeDecodeError, e:
logging.error(" Can't read file: " + file + '; ' + str(e))
self.contents = u''
f.close()
def mapping(self):
m = {}