diff --git a/certbot/compat/os.py b/certbot/compat/os.py index 6a18780ce..c8fb3ef0a 100644 --- a/certbot/compat/os.py +++ b/certbot/compat/os.py @@ -36,7 +36,7 @@ del ourselves, std_os, std_sys # os.replace on Windows for Python 3, that will do the same than on POSIX. Hopefully also, only # Python 3 is supported for Certbot. So we can rely on os.rename on Linux, and os.replace # on Windows. -def rename(*unused_args, **unused_kwargs): # pylint: disable=function-redefined +def rename(*unused_args, **unused_kwargs): """Method os.rename() is forbidden""" raise RuntimeError('Usage of os.rename() is forbidden. ' # pragma: no cover 'Use certbot.compat.misc.os_rename() instead.')