Remove Unicode mode from file read.
Hope this fixes the issue with Erics source file getting nuked
This commit is contained in:
parent
98ea23cd49
commit
bc8f1b56b6
|
@ -237,7 +237,7 @@ class HandHistoryConverter:
|
||||||
"""Read file"""
|
"""Read file"""
|
||||||
print "Reading file: '%s'" %(filename)
|
print "Reading file: '%s'" %(filename)
|
||||||
if(self.filetype == "text"):
|
if(self.filetype == "text"):
|
||||||
infile=codecs.open(filename, "rU", self.codepage)
|
infile=codecs.open(filename, "r", self.codepage)
|
||||||
self.obs = infile.read()
|
self.obs = infile.read()
|
||||||
infile.close()
|
infile.close()
|
||||||
elif(self.filetype == "xml"):
|
elif(self.filetype == "xml"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user