Skip to content

Commit 02caa57

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent af9f3df commit 02caa57

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from setuptools import setup
22

3-
43
version = "4.0.0a2.dev0"
54

65
setup(

src/plone/formwidget/namedfile/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
from plone.formwidget.namedfile.widget import NamedImageWidget # noqa
55
from zope.i18nmessageid import MessageFactory
66

7-
87
_ = MessageFactory("plone")

src/plone/formwidget/namedfile/datamanager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import os
1515
import transaction
1616

17-
1817
ANNOTATION_KEY = "plone.formwidget.namedfile.scale"
1918
ENVIRONMENT_KEY = "PLONE_SCALE_GENERATE_ON_SAVE"
2019

src/plone/formwidget/namedfile/interfaces.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ class IFileUploadTemporaryStorage(Interface):
3030
To be used to not need to re-upload files after form submission errors.
3131
"""
3232

33-
upload_map = Attribute(
34-
"""
33+
upload_map = Attribute("""
3534
Mapping for temporary uploads.
3635
Key is a uuid4.hex value.
3736
The default storage is the annotation storage of the poral root.
38-
"""
39-
)
37+
""")
4038

4139
def cleanup():
4240
"""Removes stale temporary uploads from the upload storage"""

src/plone/formwidget/namedfile/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from zope.interface import Interface
1313
from ZPublisher.HTTPRequest import FileUpload
1414

15-
1615
FILE_UPLOAD_MAP_KEY = "file_upload_map"
1716
FILE_UPLOAD_EXPIRATION_TIME = 30 * 60 # seconds
1817
FALLBACK_DATE = datetime(2000, 2, 2)

0 commit comments

Comments
 (0)