Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix openkwargs in bees.py #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion beeswithmachineguns/bees.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def _create_request_time_cdf_csv(results, complete_bees_params, request_time_cdf
# see http://python3porting.com/problems.html#csv-api-changes
openmode = IS_PY2 and 'w' or 'wt'
openkwargs = IS_PY2 and {} or {'encoding': 'utf-8', 'newline': ''}
with open(csv_filename, openmode, openkwargs) as stream:
with open(csv_filename, openmode, **openkwargs) as stream:
writer = csv.writer(stream)
header = ["% faster than", "all bees [ms]"]
for p in complete_bees_params:
Expand Down