mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-08 06:14:45 +03:00
Make OleFileIO VT dict building more comprehensive
Also is more resilient to a weird RuntimeError upon iteration sometimes yielded in tests.
This commit is contained in:
parent
d0e720929a
commit
321839edaa
|
@ -339,10 +339,8 @@ VT_VECTOR=0x1000;
|
|||
|
||||
# map property id to name (for debugging purposes)
|
||||
|
||||
VT = {}
|
||||
for keyword, var in list(vars().items()):
|
||||
if keyword[:3] == "VT_":
|
||||
VT[var] = keyword
|
||||
VT = dict((var, keyword) for keyword, var in vars().items() if keyword[:3] == 'VT_')
|
||||
|
||||
|
||||
#
|
||||
# --------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user