Changeset 903 for trunk


Ignore:
Timestamp:
Jan 6, 2017, 11:36:05 AM (3 years ago)
Author:
cito
Message:

Fix an issue with Python 3.6

While running over a dictionary in a for loop, we altered its values.
This used to work perfectly well in Python before 3.6, but now causes
problems, probably due to internal optimizations. We avoid this now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pg.py

    r901 r903  
    709709            used_values = {}
    710710            literals = dict.fromkeys(values, '')
    711             for key in literals:
     711            for key in values:
    712712                del literals[key]
    713713                try:
Note: See TracChangeset for help on using the changeset viewer.