Skip to content

Python2 compatibility generator_containers.py #57

Closed
@dmfigol

Description

@dmfigol

I am using the module on IOS XE Guest Shell with python2 only.
This API call fails, because __qualname__ is available only in Python3.

>>> spark_api.rooms.list()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/ciscosparkapi/generator_containers.py", line 70, in __repr__
    func_name=self.generator_function.__qualname__,
AttributeError: 'function' object has no attribute '__qualname__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions