Skip to content

Commit e8c9d19

Browse files
committed
Remove usages of PythonOptions.LazyStrings
1 parent 7854ae0 commit e8c9d19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str/StringBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public static AddNode create() {
503503
@Specialization
504504
TruffleString doIt(TruffleString self, TruffleString other,
505505
@Shared("concat") @Cached TruffleString.ConcatNode concatNode) {
506-
return concatNode.execute(self, other, TS_ENCODING, getContext().getOption(PythonOptions.LazyStrings));
506+
return concatNode.execute(self, other, TS_ENCODING, false);
507507
}
508508

509509
@Specialization
@@ -2506,7 +2506,7 @@ public TruffleString doString(VirtualFrame frame, Object self, Object idx,
25062506
if (index < 0 || index >= len) {
25072507
throw raise(IndexError, ErrorMessages.STRING_INDEX_OUT_OF_RANGE);
25082508
}
2509-
return substringNode.execute(str, index, 1, TS_ENCODING, getContext().getOption(PythonOptions.LazyStrings) && len < LAZY_CODEPOINT_THRESHOLD);
2509+
return substringNode.execute(str, index, 1, TS_ENCODING, false);
25102510
}
25112511
}
25122512

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/lib/PyObjectStrAsObjectNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static TruffleString str(boolean object) {
9393
@Specialization
9494
TruffleString str(long object,
9595
@Cached TruffleString.FromLongNode fromLongNode) {
96-
return fromLongNode.execute(object, TS_ENCODING, getContext().getOption(PythonOptions.LazyStrings));
96+
return fromLongNode.execute(object, TS_ENCODING, false);
9797
}
9898

9999
@Specialization(guards = "!isTruffleString(obj)")

0 commit comments

Comments
 (0)