Skip to content

Fixed issue with ClassReflection.vars method - #15

Open
TheStefan wants to merge 3 commits into
potfur:masterfrom
sdcloudt:master
Open

TheStefan wants to merge 3 commits into
potfur:masterfrom
sdcloudt:master

Conversation

@TheStefan

Copy link
Copy Markdown

Steps to reproduce bug:

  • Load the 'reflection.py' file using ModuleReflection.from_file method
  • Find the class 'ModuleReflection'
  • Call the method vars of the ClassReflection object

The following error should appear:

AttributeError: 'Call' object has no attribute 'id'

This bug is fixed by excluding ast.Call and ast.Attribute in the
ClassReflection.vars method

sdcloudt added 3 commits May 19, 2018 23:05
Steps to reproduce bug:
* Load the 'reflection.py' file using ModuleReflection.from_file method
* Find the class 'ModuleReflection'
* Call the method vars of the ClassReflection object

The following error should appear:

```AttributeError: 'Call' object has no attribute 'id'

This bug is fixed by checking for Call and Attribute in the
ClassReflection.vars method
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

Successfully merging this pull request may close these issues.

2 participants