Skip to content

Commit 069a7dc

Browse files
committed
Change print ‘string’ to print(‘string’)
1 parent ea84183 commit 069a7dc

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

plotly/graph_objs/graph_objs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def to_string(self, level=0, indent=4, eol='\n',
215215
216216
Example:
217217
218-
print obj.to_string()
218+
print(obj.to_string())
219219
220220
Keyword arguments:
221221
level (default = 0) -- set number of indentations to start with
@@ -430,7 +430,7 @@ def strip_style(self):
430430
elif not hasattr(self[key], '__iter__'):
431431
del self[key]
432432
except KeyError: # TODO: Update the JSON
433-
# print "'type' not in {0} for {1}".format(obj_key, key)
433+
# print("'type' not in {0} for {1}".format(obj_key, key))
434434
pass
435435

436436
def get_data(self):
@@ -605,7 +605,7 @@ def to_string(self, level=0, indent=4, eol='\n',
605605
606606
Example:
607607
608-
print obj.to_string()
608+
print(obj.to_string())
609609
610610
Keyword arguments:
611611
level (default = 0) -- set number of indentations to start with
@@ -759,7 +759,7 @@ def to_string(self, level=0, indent=4, eol='\n',
759759
760760
Example:
761761
762-
print obj.to_string()
762+
print(obj.to_string())
763763
764764
Keyword arguments:
765765
level (default = 0) -- set number of indentations to start with
@@ -962,7 +962,7 @@ def to_string(self, level=0, indent=4, eol='\n',
962962
963963
Example:
964964
965-
print obj.to_string()
965+
print(obj.to_string())
966966
967967
Keyword arguments:
968968
level (default = 0) -- set number of indentations to start with

plotly/tests/test_core/test_get_requests/test_get_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ def test_valid_request():
144144
# response_payload = content['payload']
145145
# figure = response_payload['figure']
146146
# if figure['data'][0]['x'] != [u'1', u'2', u'3']:
147-
# print 'ERROR'
147+
# print('ERROR')
148148
# return res
149149

plotly/tests/test_core/test_graph_objs/test_plotly_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_trivial():
1818

1919
# @raises(PlotlyError) # TODO: decide if this SHOULD raise error...
2020
# def test_instantiation_error():
21-
# print PlotlyDict(anything='something')
21+
# print(PlotlyDict(anything='something'))
2222

2323

2424
def test_validate():

plotly/tests/test_core/test_graph_objs/test_plotly_trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_trivial():
1818

1919
# @raises(PlotlyError) # TODO: decide if this SHOULD raise error...
2020
# def test_instantiation_error():
21-
# print Trace(anything='something')
21+
# print(Trace(anything='something'))
2222

2323

2424
def test_validate():

plotly/tests/test_core/test_graph_objs/test_scatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_trivial():
1919

2020
# @raises(PlotlyError) # TODO: decide if this SHOULD raise error...
2121
# def test_instantiation_error():
22-
# print PlotlyDict(anything='something')
22+
# print(PlotlyDict(anything='something'))
2323

2424

2525
def test_validate():

plotly/tests/test_core/test_graph_objs/test_to_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ def test_to_string():
3535
def test_nested_list():
3636
z = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
3737
13, 14, 15, 16, 17, 18, 19, 20, 21]]
38-
print Contour(z=z).to_string()
38+
print(Contour(z=z).to_string())

plotly/tests/test_optional/test_matplotlylib/test_date_times.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def test_normal_mpl_dates(self):
3737
# convert this figure to plotly's graph_objs
3838
pfig = tls.mpl_to_plotly(fig)
3939

40-
print date_strings
41-
print pfig['data'][0]['x']
40+
print(date_strings)
41+
print(pfig['data'][0]['x'])
4242
# we use the same format here, so we expect equality here
4343
self.assertEqual(
4444
fig.axes[0].lines[0].get_xydata()[0][0], 7.33776000e+05

0 commit comments

Comments
 (0)