Merge pull request #30180 from jfindlay/2.7x509

modules.x509._dec2hex: add fmt index for 2.6 compat
This commit is contained in:
Colton Myers 2016-01-06 12:48:50 -07:00
commit 9a83247992

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_):