Skip to content

Commit 06d7ca5

Browse files
committed
Fixed #10
1 parent 98ea759 commit 06d7ca5

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.github/workflows/python-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [ubuntu-latest]
22-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
22+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Set up Python ${{ matrix.python-version }}

pyproject.toml

-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ classifiers = [
2323
"Intended Audience :: Developers",
2424
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
2525
"Programming Language :: Python :: 3",
26-
"Programming Language :: Python :: 3.8",
27-
"Programming Language :: Python :: 3.9",
28-
"Programming Language :: Python :: 3.10",
29-
"Programming Language :: Python :: 3.11",
30-
"Programming Language :: Python :: 3.12",
3126
"Topic :: Software Development :: Libraries :: Python Modules",
3227
]
3328
dependencies = [

src/codext/VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.15.4
1+
1.15.5

src/codext/__common__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ def _input(infile):
200200

201201
def _set_exc(name, etype="ValueError"):
202202
if not hasattr(builtins, name):
203-
exec(f"class {name}({etype}): __module__ = 'builtins'")
204-
setattr(builtins, name, locals()[name])
203+
ns = {}
204+
exec(f"class {name}({etype}): __module__ = 'builtins'", {}, ns)
205+
setattr(builtins, name, ns[name])
205206
_set_exc("InputSizeLimitError")
206207
_set_exc("ParameterError")
207208

0 commit comments

Comments
 (0)