Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

iteritems causing "dictionary changed size during iteration" runtime error #28

Open
perkyswenson opened this issue Apr 11, 2017 · 0 comments

Comments

@perkyswenson
Copy link

With python 2.7.10 on the windows platform, the following line within handler.py throws a "dictionary changed size during iteration" runtime error.

for k, v in locals().iteritems():

Changing iteritems() to items() seems to eliminate the issue.

for k, v in locals().items():

I only have access to the Windows platform within the environment in which I also have access to Tanium. So I can't test other platforms. I have had a peer on Mac state that they don't encounter the issue.

The switch to .items() also mirrors the recommendation found in pep 3106.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant