newsapps / beeswithmachineguns

A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).
http://apps.chicagotribune.com/
MIT License
6.43k stars 631 forks source link

Fix CSV writing on Python 2 #148

Closed tecnobrat closed 3 years ago

tecnobrat commented 8 years ago

On Python 2 the io.open() function appears to have the signature of io.open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)

This fix makes it so Python 2.7 works. Unsure about 2.6 as I do not have a machine to test on.