@@ -72,13 +72,10 @@ ClassMethod GetRandomSimple() As %Double
72
72
/// w ##class(isc.py.Callout).SimpleStringFull()
73
73
ClassMethod SimpleStringFull (code = {" import random;" _ $$$NL _ " x=random.random();" }) As %Double
74
74
{
75
- set converted = $$$NO
76
- if $ZISWIDE (code ) {
77
- set code = $zcvt (code , " O" , " UTF8" )
78
- set converted = $$$YES
79
- }
75
+ set :$ZISWIDE (code ) code = $zcvt (code , " O" , " UTF8" )
76
+
80
77
set result = $ZF (-6 , ..#PyLibId, ..#SimpleStringFull, code )
81
- set : converted result = $zcvt (result , " I" , " UTF8" )
78
+ set result = $zcvt (result , " I" , " UTF8" )
82
79
quit result
83
80
}
84
81
@@ -89,14 +86,10 @@ ClassMethod SimpleStringFull(code = {"import random;" _ $$$NL _ "x=random.random
89
86
/// write ##class(isc.py.Callout).SimpleString()
90
87
ClassMethod SimpleString (code As %String = " " , variable As %String = " " , serialization As %Integer = 0 ) As %String
91
88
{
92
- set converted = $$$NO
93
- if $ZISWIDE (code ) {
94
- set code = $zcvt (code , " O" , " UTF8" )
95
- set converted = $$$YES
96
- }
89
+ set :$ZISWIDE (code ) code = $zcvt (code , " O" , " UTF8" )
97
90
set result = $ZF (-6 , ..#PyLibId, ..#SimpleString, code , variable , serialization )
98
91
99
- set : converted result = $zcvt (result , " I" , " UTF8" )
92
+ set result = $zcvt (result , " I" , " UTF8" )
100
93
quit result
101
94
}
102
95
0 commit comments