modules.x509._dec2hex: add fmt index for 2.6 compat

Fixes #30171.
This commit is contained in:
Justin Findlay 2016-01-06 11:21:23 -07:00
parent 27df7276bc
commit 907469d04a

View file

@ -256,7 +256,7 @@ def _dec2hex(decval):
'''
Converts decimal values to nicely formatted hex strings
'''
return _pretty_hex('{:X}'.format(decval))
return _pretty_hex('{0:X}'.format(decval))
def _text_or_file(input_):