Skip to content

Commit 159f89e

Browse files
authored
chore: Remove six and pathlib2 from deps (ietf-tools#4031)
Fixes: ietf-tools#3895 and ietf-tools#3892
1 parent 9983b97 commit 159f89e

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

bin/add-old-drafts-from-archive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import datetime
55
import os
66
import sys
7-
from pathlib2 import Path
7+
from pathlib import Path
88
from contextlib import closing
99

1010
os.environ["DJANGO_SETTINGS_MODULE"] = "ietf.settings"

debug.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
import sys
44
import time as timeutils
55
import inspect
6-
import six
7-
if six.PY3:
8-
from typing import Callable
6+
from typing import Callable
97

108
try:
119
import syslog

ietf/utils/management/commands/populate_yang_model_dirs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88
import time
99

10-
from pathlib2 import Path
10+
from pathlib import Path
1111
from textwrap import dedent
1212
from xym import xym
1313

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ mock>=4.0.3 # Used only by tests, of course
4141
mypy>=0.782,<0.790 # Version requirements determined by django-stubs.
4242
mysqlclient>=2.1.0
4343
oic>=1.3 # Used only by tests
44-
pathlib2>=2.3.7.post1
4544
Pillow>=9.1.0
4645
pyang>=2.5.3
4746
pyflakes>=2.4.0
@@ -57,7 +56,6 @@ requests-mock>=1.9.3
5756
rfc2html>=2.0.3
5857
scout-apm>=2.24.2
5958
selenium>=3.141.0,<4.0
60-
six>=1.16.0
6159
tblib>=1.7.0 # So that the django test runner provides tracebacks
6260
tlds>=2022042700 # Used to teach bleach about which TLDs currently exist
6361
tqdm>=4.64.0

0 commit comments

Comments
 (0)