[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4)



On Tue, May 26, 2020 at 10:24:37PM +0200, Thomas Goirand wrote:
> Does any of you knows how to fix this bug?
> https://bugs.debian.org/959558
> 
> Almost all of OpenStack can removed from Bullseye if not fixed in time,
> so I tried to fix, but couldn't.

Does this help?

--- case/mock.py.orig   2020-05-26 21:21:01.420069652 +0000
+++ case/mock.py        2020-05-26 21:21:09.316117783 +0000
@@ -38,13 +38,13 @@
     module_name_t = bytes  # noqa
 
 __all__ = [
-    'ANY', 'ContextMock', 'MagicMock', 'Mock', 'MockCallbacks',
-    'call', 'patch', 'sentinel',
+    b'ANY', b'ContextMock', b'MagicMock', b'Mock', b'MockCallbacks',
+    b'call', b'patch', b'sentinel',
 
-    'wrap_logger', 'environ', 'sleepdeprived', 'mask_modules', 'mute',
-    'stdouts', 'replace_module_value', 'sys_version', 'pypy_version',
-    'platform_pyimp', 'sys_platform', 'reset_modules', 'module',
-    'open', 'restore_logging', 'module_exists', 'create_patcher',
+    b'wrap_logger', b'environ', b'sleepdeprived', b'mask_modules', b'mute',
+    b'stdouts', b'replace_module_value', b'sys_version', b'pypy_version',
+    b'platform_pyimp', b'sys_platform', b'reset_modules', b'module',
+    b'open', b'restore_logging', b'module_exists', b'create_patcher',
 ]
 
 ANY = mock.ANY

-- 
Valentin


Reply to: