Skip to content

Commit 381d379

Browse files
committed
Python's pathlib is now available for both 2.x and 3.x, and is well established. Removed the ietf/utils/path.py fallback, and added pathlib to requirements.txt
- Legacy-Id: 9161
1 parent 9ee16e7 commit 381d379

3 files changed

Lines changed: 4 additions & 991 deletions

File tree

ietf/doc/expire.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
from django.conf import settings
44

55
import datetime, os, shutil, glob, re
6+
from pathlib import Path
67

78
from ietf.utils.mail import send_mail
89
from ietf.doc.models import Document, DocEvent, State, save_document_in_history, IESG_SUBSTATE_TAGS
910
from ietf.person.models import Person, Email
1011
from ietf.meeting.models import Meeting
1112
from ietf.doc.utils import add_state_change_event
12-
try:
13-
from pathlib import Path
14-
except ImportError:
15-
from ietf.utils.path import path as Path
13+
14+
1615

1716
def expirable_draft(draft):
1817
"""Return whether draft is in an expirable state or not. This is

0 commit comments

Comments
 (0)