mirror of
https://github.com/samsonjs/imapbackup.git
synced 2026-03-25 08:45:53 +00:00
Update imapbackup.py
Fix Error on Windows: "object of type 'cStringIO.StringO' has no len()"
This commit is contained in:
parent
34f91dca13
commit
a9f9dc4fe1
1 changed files with 2 additions and 1 deletions
|
|
@ -707,7 +707,8 @@ def _fixed_socket_read(self, size=-1):
|
|||
# Platform detection to enable socket patch
|
||||
if 'Darwin' in platform.platform() and '2.3.5' == platform.python_version():
|
||||
socket._fileobject.read = _fixed_socket_read
|
||||
if 'Windows' in platform.platform():
|
||||
# 20181212: Windows 10 + Python 2.7 doesn't need this fix (fix leads to error: object of type 'cStringIO.StringO' has no len())
|
||||
if 'Windows' in platform.platform() and '2.3.5' == platform.python_version():
|
||||
socket._fileobject.read = _fixed_socket_read
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue