Skip to content

Commit 7e42ad6

Browse files
committed
Add some documentation to this opaque code.
- Legacy-Id: 3081
1 parent 9a0349f commit 7e42ad6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/idrfc/expire.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ def move_file_to(subdir):
125125
try:
126126
doc = InternetDraft.objects.get(filename=filename, revision=revision)
127127

128-
if doc.status_id == 3:
128+
if doc.status_id == 3: # RFC
129129
if ext != ".txt":
130130
move_file_to("unknown_ids")
131131
elif doc.status_id in (2, 4, 5, 6) and doc.expiration_date and doc.expiration_date < cut_off:
132+
# Expired, Withdrawn by Auth, Replaced, Withdrawn by IETF,
133+
# and expired more than DAYS_TO_EXPIRE ago
132134
if os.path.getsize(path) < 1500:
133135
move_file_to("deleted_tombstones")
134136
# revert version after having deleted tombstone

0 commit comments

Comments
 (0)