Below code is working in python 2 but its breaking in python 3, could you please help
destObj={('SVC_157', None):'05-04-2022', ('SVC_157', 'V1.0'):'06-07-2022'}
for (rel, ver) in sorted(destObj.keys()):
print((rel, ver))
Please note: position of None is not fixed, it may vary if release is having more components for ex like below, ('SVC_157', 'SMU', 'Windows 10 ARM64', None )
FYI: Its not duplicate of Sorting list by an attribute that can be None