Skip to content

addons: Fix __repr__ methods#2448

Merged
danmar merged 1 commit into
cppcheck-opensource:masterfrom
jubnzv:cppcheckdata-fix-repr-1
Dec 15, 2019
Merged

addons: Fix __repr__ methods#2448
danmar merged 1 commit into
cppcheck-opensource:masterfrom
jubnzv:cppcheckdata-fix-repr-1

Conversation

@jubnzv
Copy link
Copy Markdown
Contributor

@jubnzv jubnzv commented Dec 15, 2019

This commit fixes __repr__ methods introduced in d538315. Fields that recursively links to other cppcheckdata objects was removed from __repr__ to avoid max recursion depth crash on printing.

To reproduce this crash try to print, for example, a single cppcheckdata.Token object in any addon file.

This commit fixes __repr__ methods introduced in d538315. Fields that recursively links to other cppcheckdata objects was removed to avoid max recursion depth crash on printing.
@danmar danmar merged commit 88a3b4c into cppcheck-opensource:master Dec 15, 2019
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