Use list to create a copy of the dictionary keys.
commita51fa5019e2a8fb42bb45107ebfb8d6c6c0d91f5
authorAbhilash Raj <raj.abhilash1@gmail.com>
Sat, 29 Jan 2022 04:50:52 +0000 (28 20:50 -0800)
committerAbhilash Raj <raj.abhilash1@gmail.com>
Sat, 29 Jan 2022 04:56:50 +0000 (28 20:56 -0800)
treeeee322e06d650c0490c8fc8a87e6afff294205ad
parent4564222d71a241375abfc201224ee03ef4ca0949
Use list to create a copy of the dictionary keys.

Since it is possible to have dictionary changed during the iteration,
make a copy of the keys before iterating on them.

Fixes #724
src/mailman/bin/master.py
src/mailman/docs/NEWS.rst