Fix problem with finding HHs for utf-16 files.
This commit is contained in:
parent
6c5c479ee8
commit
e0d11fe9a3
|
@ -440,10 +440,9 @@ or None if we fail to get the info """
|
|||
#print "trying", kodec
|
||||
try:
|
||||
in_fh = codecs.open(self.in_path, 'r', kodec)
|
||||
in_fh.seek(self.index)
|
||||
log.debug("Opened in_path: '%s' with %s" % (self.in_path, kodec))
|
||||
self.obs = in_fh.read()
|
||||
self.index = in_fh.tell()
|
||||
whole_file = in_fh.read()
|
||||
self.obs = whole_file[self.index:]
|
||||
self.index = len(whole_file)
|
||||
in_fh.close()
|
||||
break
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue
Block a user