We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5110d3 commit 002f164Copy full SHA for 002f164
plotly/graph_reference.py
@@ -8,6 +8,8 @@
8
import json
9
import requests
10
11
+import six
12
+
13
from plotly import exceptions, files, utils
14
15
GRAPH_REFERENCE_PATH = '/v2/plot-schema'
@@ -33,7 +35,7 @@ def get_graph_reference():
33
35
graph_reference = {}
34
36
plotly_api_domain = default_config['plotly_api_domain']
37
- sha1 = hashlib.sha1(str(graph_reference)).hexdigest()
38
+ sha1 = hashlib.sha1(six.b(str(graph_reference))).hexdigest()
39
40
graph_reference_url = '{}{}?sha1={}'.format(plotly_api_domain,
41
GRAPH_REFERENCE_PATH, sha1)
0 commit comments