Commit 1056131
committed
Modernize Lib/uuid.py: use f-strings
This change replaces instances of legacy string formatting ('%' operator and
.format() method) with f-strings in Lib/uuid.py. This improves readability
and aligns with modern Python coding standards.
Specific changes:
- UUID.__repr__: '%s(%r)' -> f-string
- _arp_getnode: '(%s)' -> f-string
- getnode assertion: .format() -> f-string1 parent 7e28ae5 commit 1056131
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
| 721 | + | |
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| |||
0 commit comments