8000 Merge pull request #63 from plotly/wb_fix · Bobfrat/python-api@e22c3a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit e22c3a7

Browse files
committed
Merge pull request plotly#63 from plotly/wb_fix
`wb` option for writing images on windows machines
2 parents 34b977f + ef557a6 commit e22c3a7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plotly/plotly/plotly.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
import chunked_requests
1919
import json
2020
import warnings
21-
import httplib
2221
import copy
23-
import base64
2422
import os
2523
from .. import utils # TODO make non-relative
2624
from .. import tools
@@ -618,7 +616,7 @@ def save_as(cls, figure_or_data, filename, format=None, width=None, height=None)
618616

619617
img = cls.get(figure_or_data, format, width, height)
620618

621-
f = open(filename, 'w')
619+
f = open(filename, 'wb')
622620
f.write(img)
623621
f.close()
624622

plotly/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.1.2'
1+
__version__ = '1.1.3'

0 commit comments

Comments
 (0)
0