[Checkins] [zopefoundation/Zope] 4fa398: Switch to use f-strings.

Michael Howitz noreply at github.com
Tue Jun 30 10:11:40 CEST 2020


  Branch: refs/heads/issue-841/f-strings
  Home:   https://github.com/zopefoundation/Zope
  Commit: 4fa3984bc5b867058b51e939332ab7b65a1a0719
      https://github.com/zopefoundation/Zope/commit/4fa3984bc5b867058b51e939332ab7b65a1a0719
  Author: Michael Howitz <mh at gocept.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M docs/conf.py
    M docs/zdgbook/examples/PollImplementation.py
    M src/App/ApplicationManager.py
    M src/App/DavLockManager.py
    M src/App/Extensions.py
    M src/App/Management.py
    M src/App/ProductContext.py
    M src/App/Undo.py
    M src/App/version_txt.py
    M src/OFS/Application.py
    M src/OFS/CopySupport.py
    M src/OFS/DTMLDocument.py
    M src/OFS/DTMLMethod.py
    M src/OFS/FindSupport.py
    M src/OFS/Image.py
    M src/OFS/LockItem.py
    M src/OFS/ObjectManager.py
    M src/OFS/PropertySheets.py
    M src/OFS/SimpleItem.py
    M src/OFS/absoluteurl.py
    M src/OFS/role.py
    M src/OFS/tests/testApplication.py
    M src/OFS/tests/testCopySupportEvents.py
    M src/OFS/tests/testRanges.py
    M src/OFS/tests/test_event.py
    M src/Products/Five/browser/adding.py
    M src/Products/Five/browser/metaconfigure.py
    M src/Products/Five/browser/resource.py
    M src/Products/Five/browser/tests/classes.py
    M src/Products/Five/browser/tests/test_scriptsecurity.py
    M src/Products/PageTemplates/PageTemplate.py
    M src/Products/PageTemplates/engine.py
    M src/Products/PageTemplates/tests/testChameleonTalesExpressions.py
    M src/Products/PageTemplates/tests/testErrorHandling.py
    M src/Products/PageTemplates/tests/testExpressions.py
    M src/Products/PageTemplates/tests/testZopeTalesExpressions.py
    M src/Products/PageTemplates/tests/test_persistenttemplate.py
    M src/Products/PageTemplates/tests/test_ptfile.py
    M src/Products/SiteAccess/VirtualHostMonster.py
    M src/Products/SiteAccess/tests/testVirtualHostMonster.py
    M src/Shared/DC/Scripts/Bindings.py
    M src/Shared/DC/Scripts/Script.py
    M src/Testing/ZopeTestCase/testFunctional.py
    M src/Testing/ZopeTestCase/zopedoctest/functional.py
    M src/Testing/tests/test_testbrowser.py
    M src/ZPublisher/BaseRequest.py
    M src/ZPublisher/BaseResponse.py
    M src/ZPublisher/BeforeTraverse.py
    M src/ZPublisher/HTTPRequest.py
    M src/ZPublisher/HTTPResponse.py
    M src/ZPublisher/tests/testHTTPRangeSupport.py
    M src/ZPublisher/tests/testHTTPRequest.py
    M src/ZPublisher/tests/test_WSGIPublisher.py
    M src/ZPublisher/tests/test_mapply.py
    M src/ZPublisher/tests/test_pubevents.py
    M src/ZPublisher/xmlrpc.py
    M src/ZTUtils/Zope.py
    M src/Zope2/Startup/datatypes.py
    M src/Zope2/Startup/tests/test_schema.py
    M src/Zope2/utilities/zconsole.py
    M src/webdav/PropertySheet.py
    M src/webdav/PropertySheets.py
    M src/webdav/common.py
    M src/webdav/davcmds.py
    M src/webdav/interfaces.py
    M src/webdav/tests/testCopySupportEvents.py
    M src/webdav/tests/testCopySupportHooks.py
    M src/webdav/tests/testNullResource.py
    M src/webdav/tests/testResource.py
    M src/webdav/tests/test_davcmds.py
    M src/webdav/tests/test_xmltools.py
    M src/webdav/xmltools.py
    M src/zmi/styles/tests.py

  Log Message:
  -----------
  Switch to use f-strings.

Fixes #841.

I called `pyupgrade --py3-only --py3-plus --py36-plus --py37-plus` on
the Python files.
While looking through the changes, I did some adoptions to sometimes
use f-strings in places where the tool did not use them.

Additionally `pyupgrade` removed some Python 2 compatiblity leftovers.




More information about the checkins mailing list