xmindltd / xmind-sdk-python

MIT License
428 stars 179 forks source link

avoid no __exit__ attribute for python 2.6 and add Basic Example #6

Closed brumar closed 10 years ago

brumar commented 10 years ago

Hello ! This issue has been fixed in python 2.7 but for python 2.6 ZipFile object is not compatible with with_statement : it raises AttributeError: ZipFile instance has no attribute ‘exit