def represent_hex_quad(dumper, data): return dumper.represent_scalar(u'tag:yaml.org,2002:int', '0x%04x' % data)