diff options
-rw-r--r-- | sos/plugins/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 49da6f26..cd34d196 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -36,6 +36,11 @@ from six.moves import zip, filter def _to_u(s): if not isinstance(s, six.text_type): + # Workaround python.six mishandling of strings ending in '\' by + # adding a single space following any '\' at end-of-line. + # See Six issue #60. + if s.endswith('\\'): + s += " " s = six.u(s) return s |