parent
d6e51fa204
commit
7b191add79
|
@ -134,7 +134,7 @@ class MboxListBuffer(Buffer):
|
||||||
f = open(self.path, 'r')
|
f = open(self.path, 'r')
|
||||||
self.size = len(f.read())
|
self.size = len(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
if sys.version_info == 4:
|
if sys.version_info[1] == 4:
|
||||||
fp = open(self.path, 'rb')
|
fp = open(self.path, 'rb')
|
||||||
self.mbox = mailbox.UnixMailbox(fp)
|
self.mbox = mailbox.UnixMailbox(fp)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue