Skip to content

Commit

Permalink
Update supported Python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Jan 28, 2025
1 parent 10c7dfb commit 48f5fb9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def read(*rnames):
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
'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 :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: English',
Expand All @@ -112,7 +112,7 @@ def read(*rnames):
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=['zc'],
python_requires='>=3.7',
python_requires='>=3.9',
extras_require={
'test': tests_require,
'browser': [
Expand Down
4 changes: 2 additions & 2 deletions src/zc/catalog/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ def set_resolution(value, resolution):
resolution += 2
if resolution < 6:
args = []
args.extend(value.timetuple()[:resolution+1])
args.extend([0]*(6-resolution))
args.extend(value.timetuple()[:resolution + 1])
args.extend([0] * (6 - resolution))
args.append(value.tzinfo)
value = datetime.datetime(*args)
return value
Expand Down
2 changes: 1 addition & 1 deletion src/zc/catalog/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class ISelfPopulatingExtent(IExtent):
description=_(
"Flag indicating whether self-population has been performed."),
readonly=True,
)
)

def populate():
"""Populate the extent based on the current content of the database.
Expand Down
6 changes: 3 additions & 3 deletions src/zc/catalog/stemmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
broken = None
try:
from zopyx.txng3.ext import stemmer
except ImportError: # pragma: no cover
except ModuleNotFoundError: # pragma: no cover
try:
from zopyx.txng3 import stemmer
except ImportError:
except ModuleNotFoundError:
try:
import txngstemmer as stemmer
except ImportError:
except ModuleNotFoundError:
stemmer = None

class Broken:
Expand Down

0 comments on commit 48f5fb9

Please sign in to comment.