mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
bug 348731, make encoding errors produce comparison errors
This commit is contained in:
parent
f100547e2f
commit
ad45cd58c5
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user