MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / append_strings

Function append_strings

_pydev_runfiles/pydev_runfiles_pytest2.py:200–211  ·  view source on GitHub ↗
(s1, s2)

Source from the content-addressed store, hash-verified

198
199
200def append_strings(s1, s2):
201 if s1.__class__ == s2.__class__:
202 return s1 + s2
203
204 # Prefer str
205 if isinstance(s1, bytes):
206 s1 = s1.decode("utf-8", "replace")
207
208 if isinstance(s2, bytes):
209 s2 = s2.decode("utf-8", "replace")
210
211 return s1 + s2
212
213
214def pytest_runtest_logreport(report):

Callers 1

pytest_runtest_logreportFunction · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected