Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/anchor_dump.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ from xml import fromstring, Element
def _esc(s_in: String, strip: Bool) -> String:
var s = s_in
if strip:
s = String(s.strip())
var stripped = String(s.strip())
s = stripped^
# order matters: backslash first
var out = String()
for ch in s.codepoint_slices():
Expand Down
2 changes: 1 addition & 1 deletion test/test_errors.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def _assert_lc(source: String, offset: Int, line: Int, col: Int) raises:


def _msg(e: Error) -> String:
return String.write(e)
return String(e)


def _strict_drain(var source: String) raises:
Expand Down
Loading