File tree Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 1111Date : Aug 21, 2017
1212"""
1313
14+ from __future__ import print_function
1415import HydraPython as hypy
1516import sys
1617import time
@@ -57,15 +58,9 @@ def main():
5758
5859 # Device #
5960
60- if sys .version_info .major == 2 :
61- print
62- sys .stdout .write (constants .RED )
63- print "ERROR: device is not supported with custom functors in current HydraPython version."
64- sys .stdout .write (constants .RESET )
65- else :
66- print ()
67- print (constants .RED , "ERROR: device is not supported with custom functors in current HydraPython version." )
68- print (constants .RESET )
61+ print ()
62+ print (constants .RED , "ERROR: device is not supported with custom functors in current HydraPython version." )
63+ print (constants .RESET )
6964
7065 # Host #
7166 start = time .time ()
Original file line number Diff line number Diff line change 1010Date : Aug 21, 2017
1111"""
1212
13+ from __future__ import print_function
1314import HydraPython as hypy
1415import sys
1516import time
@@ -56,16 +57,9 @@ def main():
5657
5758 # Device #
5859
59- if sys .version_info .major == 2 :
60- print
61- sys .stdout .write (constants .RED )
62- print "ERROR: device is not supported with custom functors in current HydraPython version."
63- sys .stdout .write (constants .RESET )
64- else :
65- print ()
66- print (sys .version_info .major )
67- print (constants .RED , "ERROR: device is not supported with custom functors in current HydraPython version." )
68- print (constants .RESET )
60+ print ()
61+ print (constants .RED , "ERROR: device is not supported with custom functors in current HydraPython version." )
62+ print (constants .RESET )
6963
7064 # Host #
7165 result = hypy .host_vector_float2 (nentries )
You can’t perform that action at this time.
0 commit comments