Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Oct 26, 2023
1 parent 66238c9 commit 265439e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/plone/restapi/deserializer/publication_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def set(self, value):
return super().set(value)
if value is not None:
if value.tzinfo is None:
value = DateTime(value.year, value.month, value.day, value.hour, value.minute)
value = DateTime(
value.year, value.month, value.day, value.hour, value.minute
)
else:
value = DateTime(value)
setattr(self.context, self.name, value)
Expand Down
1 change: 0 additions & 1 deletion src/plone/restapi/serializer/dxfields.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from AccessControl import getSecurityManager
from DateTime import DateTime
from plone.app.contenttypes.interfaces import ILink
from plone.app.contenttypes.utils import replace_link_variables_by_paths
from plone.app.dexterity.behaviors.metadata import IPublication
Expand Down

0 comments on commit 265439e

Please sign in to comment.