Skip to content

Commit

Permalink
Drop support for Python 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Jun 7, 2024
1 parent 67511a7 commit c9813f0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ Changelog
4.0 (unreleased)
----------------

* Add support for Python 3.12.

* Drop support for Python 3.7.


3.0 (2023-02-01)
----------------

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"License :: OSI Approved :: Zope Public License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
Expand All @@ -34,7 +34,7 @@
package_dir={'': 'src'},
namespace_packages=['five'],
include_package_data=True,
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=[
'setuptools',
'transaction',
Expand Down
18 changes: 9 additions & 9 deletions src/five/formlib/tests/forms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ An unprotected form can be accessed with anonymously:

We don't have access, we will not be able to get to the protected add form:

>>> browser.open("http://localhost/test_folder_1_/ftf/+/protectedaddform.html")
>>> browser.open("http://localhost/test_folder_1_/ftf/+/protectedaddform.html")
>>> print(browser.headers)
Status: 401 ...
...
Expand Down Expand Up @@ -83,7 +83,7 @@ specified attribute is the default value:
>>> edittest = self.folder.ftf.edittest
>>> str(edittest.title)
'title'
>>> edittest.description #XXX shouldn't we get a u'' here???
>>> edittest.description #XXX shouldn't we get a '' here???

We can also verify that the IObjectCreatedEvent was fired, and the test
subscriber we registered set a flag indicating such:
Expand Down Expand Up @@ -124,7 +124,7 @@ We will see that nothing has changed:

>>> str(edittest.title)
'title'
>>> edittest.description #XXX shouldn't we get a u'' here???
>>> edittest.description #XXX shouldn't we get a '' here???
>>> getattr(edittest, '_modified_flag', False)
False

Expand Down Expand Up @@ -198,12 +198,12 @@ the content, this means that no IObjectModified event should have been fired
Unicode-safety of forms
-----------------------

Automatically generated forms support unicode (native strings
under Python 3). Here we will enter the following two
chinese sequences (How do you do? and I'm doing good) in forms:
Automatically generated forms support native strings (formerly known as
``unicode``). Here we will enter the following two chinese sequences ("How do
you do?" and "I'm doing good.") in forms:

>>> ni_hao = u'\u4f60\u597d'
>>> wo_hen_hao = u'\u6211\u5f88\u597d'
>>> ni_hao = '\u4f60\u597d'
>>> wo_hen_hao = '\u6211\u5f88\u597d'

First, it's imaginable that we make a mistake and enter one of the
phrases in the integer field:
Expand Down Expand Up @@ -316,7 +316,7 @@ element to the list:

Now, let's enter some more Chinese:

>>> de_guo = u'\u5fb7\u56fd'
>>> de_guo = '\u5fb7\u56fd'

>>> print(http_request(
... "/test_folder_1_/ftf/unicodetest/@@edit.html", (
Expand Down

0 comments on commit c9813f0

Please sign in to comment.