jdunck/python-unicodecsv — pull request #21 by blagarde (2013-09-20 11:59:00+00:00)
Title: Every line counts! - Handy contexts and generator

This saves one line of code in the most frequent use case where the file-like object being read from/written to is... a file.

```
path = 'myfile.csv'

# 1. Simplified reader
from unicodecsv import xcsv
for row in xcsv(path):
print row

# 2. Simplified writer
from unicodecsv import uwriter
with uwriter(path) as ucsv:
for row in lst:
ucsv.writerow(row)
```