Skip to content

Commit

Permalink
fix: drop a python 2 import fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 24, 2023
1 parent 870a8d9 commit 8772e31
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions plone/resource/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
``bar``. ``title`` and ``description`` will be ``None`` if not found in the
manifest. ``bar`` will be ``baz`` if not found.
"""
from configparser import ConfigParser
from plone.resource.directory import FILTERS
from plone.resource.interfaces import IResourceDirectory
from plone.resource.utils import iterDirectoriesOfType
Expand All @@ -35,16 +36,6 @@
import logging


try:
# On Python 2 we must have the SafeConfigParser
from ConfigParser import SafeConfigParser as ConfigParser
except ImportError:
# On Python 3 we want the standard ConfigParser,
# to avoid a deprecation warning.
# Note that on Python 2 configparser can come from a backport.
from configparser import ConfigParser


MANIFEST_FILENAME = "manifest.cfg"

LOGGER = logging.getLogger("plone.resource.manifest")
Expand Down

0 comments on commit 8772e31

Please sign in to comment.