Home | History | Annotate | Download | only in Lib

Lines Matching defs:hex

31     # make a UUID from a string of hex digits (braces and hyphens ignored)
34 # convert a UUID to a string of hex digits in standard form
93 hex the UUID as a 32-character hexadecimal string
106 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
114 argument. When a string of hex digits is given, curly braces,
127 Exactly one of 'hex', 'bytes', 'bytes_le', 'fields', or 'int' must
130 overriding the given 'hex', 'bytes', 'bytes_le', 'fields', or 'int'.
133 if [hex, bytes, bytes_le, fields, int].count(None) != 4:
134 raise TypeError('one of the hex, bytes, bytes_le, fields, '
136 if hex is not None:
137 hex = hex.replace('urn:', '').replace('uuid:', '')
138 hex = hex.strip('{}').replace('-', '')
139 if len(hex) != 32:
141 int = int_(hex, 16)
227 hex = '%032x' % self.int
229 hex[:8], hex[8:12], hex[12:16], hex[16:20], hex[20:])
281 def hex(self):