1
0
mirror of https://github.com/kkroening/ffmpeg-python.git synced 2025-04-06 04:15:44 +08:00

Replace OrderedDict.move_to_end with Python2-compatible alternative

This commit is contained in:
Davide Depau 2018-01-26 16:13:39 +01:00
parent b4e8c38b68
commit 34cc51d95d
No known key found for this signature in database
GPG Key ID: C7D999B6A55EFE86

@ -46,4 +46,4 @@ def escape_chars(text, chars):
def sort_ordereddict(d):
for key in sorted(d.keys()):
d.move_to_end(key)
d[key] = d.pop(key)