Skip to content

Commit

Permalink
chore: pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 7, 2023
1 parent ebd88a1 commit 75bd1f8
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion plone/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
__import__('pkg_resources').declare_namespace(__name__)
1 change: 0 additions & 1 deletion plone/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
__import__('pkg_resources').declare_namespace(__name__)
1 change: 0 additions & 1 deletion plone/app/intid/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
3 changes: 1 addition & 2 deletions plone/app/intid/setuphandlers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from five.intid.intid import IntIds
from five.intid.site import addUtility
from Products.CMFCore.interfaces import IContentish
Expand Down Expand Up @@ -73,5 +72,5 @@ def registerContent(context):
return
portal = context.getSite()
registered, existing = register_all_content_for_intids(portal)
return ('Assigned intids to {0} content objects, {1} objects '
return ('Assigned intids to {} content objects, {} objects '
'already had intids.'.format(registered, existing))
1 change: 0 additions & 1 deletion plone/app/intid/testing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from plone.app.testing import IntegrationTesting
from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
Expand Down
1 change: 0 additions & 1 deletion plone/app/intid/tests/test_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from plone.app.intid.testing import SETUP_TESTING
from plone.app.testing import setRoles
from plone.app.testing import TEST_USER_ID
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
version=version,
description="Installation and migration support for five.intid within "
"Plone/CMF",
long_description='%s\n%s' % (
long_description='{}\n{}'.format(
open("README.rst").read(),
open(os.path.join("CHANGES.rst")).read(),
),
Expand Down

0 comments on commit 75bd1f8

Please sign in to comment.