markokr/rarfile — pull request #3 by hanwentao (2012-10-16 03:26:11+00:00)
Title: Add context manager support

`zipfile` supports context manager from 2.7, so the code can be written like this:

```python
with zipfile.ZipFile('test.zip') as zip_file:
# Do something
pass
```

This commit adds such feature to `rarfile`.