Skip to content

Commit 55edd0c

Browse files
committed
update variable names
1 parent 08607f7 commit 55edd0c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/uuid.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,17 +323,17 @@ def clock_seq_low(self):
323323

324324
@property
325325
def time(self):
326+
field_1 = self.int >> 96
327+
field_3_no_ver = (self.int >> 64) & 0x0fff
328+
326329
if self.version == 6:
327330
# In version 6, the first field contains the 32 MSBs
328331
# and the field after the version contains the 12 LSBs.
329-
time_hi = self.int >> 96 # == fields[0]
330-
time_lo = (self.int >> 64) & 0x0fff # == fields[2] & 0x0fff
331-
return time_hi << 28 | (self.time_mid << 12) | time_lo
332+
return field_1 << 28 | (self.time_mid << 12) | field_3_no_ver
332333
else:
333334
# In version 1, the first field contains the 32 LSBs
334335
# and the field after the version contains the 12 MSBs.
335-
time_hi = (self.int >> 64) & 0x0fff # == fields[2] & 0x0fff
336-
return time_hi << 48 | (self.time_mid << 32) | self.time_low
336+
return field_3_no_ver << 48 | (self.time_mid << 32) | field_1
337337

338338
@property
339339
def clock_seq(self):

0 commit comments

Comments
 (0)