From 901536d5459a8fccd32107b1fda73d7c7d8e5a36 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Fri, 24 May 2019 18:12:00 +0200 Subject: [PATCH] Fix lint --- certbot/compat/filesystem.py | 6 +++--- certbot/tests/compat/os_test.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/certbot/compat/filesystem.py b/certbot/compat/filesystem.py index d8f799d84..eded3b7ec 100644 --- a/certbot/compat/filesystem.py +++ b/certbot/compat/filesystem.py @@ -107,10 +107,10 @@ def _generate_windows_flags(rights_desc): # # For the rights read and execute, we have a pretty bijective relation between # POSIX flags and their generic counterparts on Windows, so we use them directly - # (respectively ntsecuritycon.FILE_GENERIC_READ) and (respectively ntsecuritycon.FILE_GENERIC_EXECUTE). + # (respectively ntsecuritycon.FILE_GENERIC_READ and ntsecuritycon.FILE_GENERIC_EXECUTE). # - # But ntsecuritycon.FILE_GENERIC_WRITE does not correspond to what one could expect from a write - # access on Linux: for Windows, FILE_GENERIC_WRITE does not include delete, move or + # But ntsecuritycon.FILE_GENERIC_WRITE does not correspond to what one could expect from a + # write access on Linux: for Windows, FILE_GENERIC_WRITE does not include delete, move or # rename. This is something that requires ntsecuritycon.FILE_ALL_ACCESS. # So to reproduce the write right as POSIX, we will apply ntsecuritycon.FILE_ALL_ACCESS # substracted of the rights corresponding to POSIX read and POSIX execute. diff --git a/certbot/tests/compat/os_test.py b/certbot/tests/compat/os_test.py index 60414d267..f1ecbc0ab 100644 --- a/certbot/tests/compat/os_test.py +++ b/certbot/tests/compat/os_test.py @@ -1,3 +1,4 @@ +"""Unit test for os module.""" import unittest from certbot.compat import os