Skip to content

Commit

Permalink
fix for OpenCyphal#90, python 3.11 fixes (OpenCyphal#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
thirtytwobits authored Jan 29, 2023
1 parent c6b616d commit fc0715c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ environment:
APPVEYOR_BUILD_WORKER_IMAGE: macos
PYTHON: "3.9"

- job_group: tests
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
PYTHON: "3.11"

- job_group: tests
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
PYTHON: "3.10"
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import nox


PYTHONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
PYTHONS = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
"""The newest supported Python shall be listed LAST."""

nox.options.error_on_external_run = True
Expand Down
2 changes: 1 addition & 1 deletion pydsdl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os as _os
import sys as _sys

__version__ = "1.17.0"
__version__ = "1.18.0"
__version_info__ = tuple(map(int, __version__.split(".")[:3]))
__license__ = "MIT"
__author__ = "OpenCyphal"
Expand Down
4 changes: 2 additions & 2 deletions pydsdl/third_party/parsimonious/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# TODO: Make sure all symbol refs are local--not class lookups or
# anything--for speed. And kill all the dots.

from inspect import getargspec
from inspect import getfullargspec
import re

from six import integer_types, python_2_unicode_compatible
Expand Down Expand Up @@ -57,7 +57,7 @@ def foo(text, pos, cache, error, grammar):
part of, to make delegating to other rules possible
"""
num_args = len(getargspec(callable).args)
num_args = len(getfullargspec(callable).args)
if num_args == 2:
is_simple = True
elif num_args == 5:
Expand Down

0 comments on commit fc0715c

Please sign in to comment.