Skip to content

Commit

Permalink
Merge pull request #200 from plone/python38
Browse files Browse the repository at this point in the history
Add support for Python 3.8
  • Loading branch information
pbauer authored Jun 22, 2019
2 parents 40f0e85 + d288614 commit 003f002
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/200.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for Python 3.8 [pbauer]
6 changes: 5 additions & 1 deletion plone/app/layout/viewlets/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from AccessControl import getSecurityManager
from Acquisition import aq_base
from Acquisition import aq_inner
from cgi import escape
from collections import defaultdict
from datetime import date
from functools import total_ordering
Expand Down Expand Up @@ -33,6 +32,11 @@
from zope.interface import implementer
from zope.viewlet.interfaces import IViewlet

try:
from html import escape
except ImportError:
from cgi import escape


@implementer(IViewlet)
@total_ordering
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='plone layout viewlet',
author='Plone Foundation',
Expand Down

0 comments on commit 003f002

Please sign in to comment.