diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-08-17 11:23:02 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-08-17 11:23:02 -0400 |
commit | 931a2fd63de2de417adbe3e02d55af7a459bca36 (patch) | |
tree | 9d2c52e3de52623e3323a46c849bf5045bc1b088 | |
parent | f24172d23d900bd6f9d10bb648107bbf4a755aaf (diff) |
DRTVWR-588: print(file=) to binary file still requires str argument.
Use f.writelines((bytes, b'\n')) instead.
-rw-r--r-- | indra/llcommon/tests/llsdserialize_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/llcommon/tests/llsdserialize_test.cpp b/indra/llcommon/tests/llsdserialize_test.cpp index f46682e2d7..efd7dc9852 100644 --- a/indra/llcommon/tests/llsdserialize_test.cpp +++ b/indra/llcommon/tests/llsdserialize_test.cpp @@ -1867,10 +1867,9 @@ namespace tut "lines.''',\n" "]\n" // Don't forget raw-string syntax for Windows pathnames. - // N.B. Using 'print' implicitly adds newlines. "with open(r'" << file.getName() << "', 'wb') as f:\n" " for item in DATA:\n" - " print(llsd.format_notation(item), file=f)\n"; }); + " f.writelines((llsd.format_notation(item), b'\n'))\n"; }); std::ifstream inf(file.getName().c_str()); LLSD item; |