Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
python-junos-eznc
python-311.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-311.patch of Package python-junos-eznc
Index: py-junos-eznc-2.7.0/lib/jnpr/junos/device.py =================================================================== --- py-junos-eznc-2.7.0.orig/lib/jnpr/junos/device.py +++ py-junos-eznc-2.7.0/lib/jnpr/junos/device.py @@ -43,6 +43,12 @@ from jnpr.junos.exception import JSONLoa from ncclient.operations.third_party.juniper.rpc import ExecuteRpc import inspect +# Python 3.11 compatibility +# gh#Juniper/py-junos-eznc#1236 +if not hasattr(inspect, "getargspec"): + inspect.getargspec = inspect.getfullargspec + + if sys.version_info[0] >= 3: NCCLIENT_FILTER_XML = len(inspect.signature(ExecuteRpc.request).parameters) == 3 else: Index: py-junos-eznc-2.7.0/lib/jnpr/junos/utils/scp.py =================================================================== --- py-junos-eznc-2.7.0.orig/lib/jnpr/junos/utils/scp.py +++ py-junos-eznc-2.7.0/lib/jnpr/junos/utils/scp.py @@ -1,6 +1,11 @@ from __future__ import absolute_import import inspect +# Python 3.11 compatibility +# gh#Juniper/py-junos-eznc#1236 +if not hasattr(inspect, "getargspec"): + inspect.getargspec = inspect.getfullargspec + from scp import SCPClient from jnpr.junos.utils.ssh_client import open_ssh_client
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor