From e2aa75be1b1fc57b379ef414859bd5e49832cf8e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:33:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Products/PortalTransforms/cache.py | 1 + Products/PortalTransforms/setuphandlers.py | 1 + Products/PortalTransforms/transforms/lynx_dump.py | 1 + Products/PortalTransforms/transforms/pdf_to_html.py | 1 + Products/PortalTransforms/transforms/rtf_to_xml.py | 1 + Products/PortalTransforms/unsafe_transforms/build_transforms.py | 1 + Products/PortalTransforms/utils.py | 1 + 7 files changed, 7 insertions(+) diff --git a/Products/PortalTransforms/cache.py b/Products/PortalTransforms/cache.py index 1d54f8d..47ca03d 100644 --- a/Products/PortalTransforms/cache.py +++ b/Products/PortalTransforms/cache.py @@ -1,5 +1,6 @@ """Cache """ + from Acquisition import aq_base from time import time diff --git a/Products/PortalTransforms/setuphandlers.py b/Products/PortalTransforms/setuphandlers.py index 02ab700..32c6980 100644 --- a/Products/PortalTransforms/setuphandlers.py +++ b/Products/PortalTransforms/setuphandlers.py @@ -1,6 +1,7 @@ """ PortalTransforms setup handlers. """ + from io import StringIO as NativeStringIO from Products.CMFCore.utils import getToolByName diff --git a/Products/PortalTransforms/transforms/lynx_dump.py b/Products/PortalTransforms/transforms/lynx_dump.py index 27ddcc3..78f0a2d 100644 --- a/Products/PortalTransforms/transforms/lynx_dump.py +++ b/Products/PortalTransforms/transforms/lynx_dump.py @@ -1,6 +1,7 @@ """ Uses lynx -dump """ + from Products.PortalTransforms.interfaces import ITransform from Products.PortalTransforms.libtransforms.commandtransform import popentransform from zope.interface import implementer diff --git a/Products/PortalTransforms/transforms/pdf_to_html.py b/Products/PortalTransforms/transforms/pdf_to_html.py index c149176..6325001 100644 --- a/Products/PortalTransforms/transforms/pdf_to_html.py +++ b/Products/PortalTransforms/transforms/pdf_to_html.py @@ -2,6 +2,7 @@ Uses the http://sf.net/projects/pdftohtml bin to do its handy work """ + from Products.PortalTransforms.interfaces import ITransform from Products.PortalTransforms.libtransforms.commandtransform import commandtransform from Products.PortalTransforms.libtransforms.utils import bodyfinder diff --git a/Products/PortalTransforms/transforms/rtf_to_xml.py b/Products/PortalTransforms/transforms/rtf_to_xml.py index dc1b134..4f89dff 100644 --- a/Products/PortalTransforms/transforms/rtf_to_xml.py +++ b/Products/PortalTransforms/transforms/rtf_to_xml.py @@ -2,6 +2,7 @@ Uses the http://sf.net/projects/rtf2xml bin to do its handy work """ + from Products.PortalTransforms.interfaces import ITransform from Products.PortalTransforms.libtransforms.commandtransform import commandtransform from Products.PortalTransforms.libtransforms.utils import sansext diff --git a/Products/PortalTransforms/unsafe_transforms/build_transforms.py b/Products/PortalTransforms/unsafe_transforms/build_transforms.py index bf6ad5b..a8a2876 100644 --- a/Products/PortalTransforms/unsafe_transforms/build_transforms.py +++ b/Products/PortalTransforms/unsafe_transforms/build_transforms.py @@ -1,6 +1,7 @@ """try to build some useful transformations with the command and xml transforms and the available binaries """ + from command import ExternalCommandTransform from Products.PortalTransforms.libtransforms.utils import bin_search from Products.PortalTransforms.libtransforms.utils import MissingBinary diff --git a/Products/PortalTransforms/utils.py b/Products/PortalTransforms/utils.py index ef3695e..c0d3c8a 100644 --- a/Products/PortalTransforms/utils.py +++ b/Products/PortalTransforms/utils.py @@ -1,5 +1,6 @@ """some common utilities """ + # directory where template for the ZMI are located import logging import os.path