diff options
author | Mads Jensen <mads.jensen@eficode.com> | 2021-03-04 00:10:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 00:10:56 +0300 |
commit | a3abcc001a1dff41a6ecd90f779cf038e2f32cc9 (patch) | |
tree | eca53b4015a884cb0923f2c822f5eb502fcc0371 /certbot-apache | |
parent | 9643e85b4c65c755afe885914500ff439210f688 (diff) |
Removed a Python 2 fallback in certbot.Reverter. (#8694)
* Removed a Python 2 fallback in certbot.Reverter.
* Removed a Python < 3.6 fallback in certbot-apache._internal.parser.
Diffstat (limited to 'certbot-apache')
-rw-r--r-- | certbot-apache/certbot_apache/_internal/parser.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/certbot-apache/certbot_apache/_internal/parser.py b/certbot-apache/certbot_apache/_internal/parser.py index fdef167bc..a1ea02b18 100644 --- a/certbot-apache/certbot_apache/_internal/parser.py +++ b/certbot-apache/certbot_apache/_internal/parser.py @@ -3,8 +3,6 @@ import copy import fnmatch import logging import re -import sys - from acme.magic_typing import Dict from acme.magic_typing import List @@ -737,9 +735,6 @@ class ApacheParser: :rtype: str """ - if sys.version_info < (3, 6): - # This strips off final /Z(?ms) - return fnmatch.translate(clean_fn_match)[:-7] # pragma: no cover # Since Python 3.6, it returns a different pattern like (?s:.*\.load)\Z return fnmatch.translate(clean_fn_match)[4:-3] # pragma: no cover |