Skip to content

Python2 compatibility generator_containers.py #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dmfigol opened this issue Jun 9, 2018 · 1 comment
Closed

Python2 compatibility generator_containers.py #57

dmfigol opened this issue Jun 9, 2018 · 1 comment

Comments

@dmfigol
Copy link

dmfigol commented Jun 9, 2018

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__'
@cmlccie
Copy link
Collaborator

cmlccie commented Jan 3, 2019

@dmfigol I have correct this compatibility issue in ciscosparkapi v0.10.1 and webexteamssdk v1.1.1. Let me know if you have any issues after updating to these versions.

@cmlccie cmlccie closed this as completed Jan 3, 2019
cmlccie added a commit that referenced this issue Apr 2, 2019
Use `generator_function.__name__` for Python2 compatibility instead of `generator_function.__qualname__`.

See issue #57.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants