Skip to content

Commit d7ec5d9

Browse files
committed
Fix __str__ method
1 parent 6ed5b81 commit d7ec5d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/uuid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ def __setattr__(self, name, value):
321321
raise TypeError('UUID objects are immutable')
322322

323323
def __str__(self):
324-
hex = self.hex
325-
return f'{hex[:8]}-{hex[8:12]}-{hex[12:16]}-{hex[16:20]}-{hex[20:]}'
324+
x = self.hex
325+
return f'{x[:8]}-{x[8:12]}-{x[12:16]}-{x[16:20]}-{x[20:]}'
326326

327327
@property
328328
def bytes(self):

0 commit comments

Comments
 (0)