markokr/rarfile — pull request #4 by hanwentao (2012-10-16 08:32:05+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` (fix: `.pyc` file not included now).