Skip to content

Commit 2b9a6a0

Browse files
committed
-
1 parent d2e64a1 commit 2b9a6a0

File tree

21 files changed

+2518
-3229
lines changed

21 files changed

+2518
-3229
lines changed

LICENSE

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,3 @@ Python Toolbox includes third-party Python packages as subpackages that are used
1919
* `sortedcontainers` by Grant Jenks and others, Apache license 2.0.
2020
* `unittest2` by Robert Collins and others, BSD license.
2121
* `decorator` by Michele Simionato and others, BSD license.
22-
* `pathlib` by Antoine Pitrou and others, MIT license.
23-
* `enum` by Ben Finney and others, PSF license.
24-
* `funcsigs` by Aaron Iles and others, Apache license 2.0.
25-
* `linecache2` by "Testing-cabal" and others, PSF license.
26-
* `traceback2` by "Testing-cabal" and others, PSF license.
27-
* `six` by Benjamin Peterson and others, MIT license.
28-
* `functools` and `collections` by Python-dev and others, PSF license.
29-

python_toolbox/MIT_license.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,3 @@ Python Toolbox includes third-party Python packages as subpackages that are used
1919
* `sortedcontainers` by Grant Jenks and others, Apache license 2.0.
2020
* `unittest2` by Robert Collins and others, BSD license.
2121
* `decorator` by Michele Simionato and others, BSD license.
22-
* `pathlib` by Antoine Pitrou and others, MIT license.
23-
* `enum` by Ben Finney and others, PSF license.
24-
* `funcsigs` by Aaron Iles and others, Apache license 2.0.
25-
* `linecache2` by "Testing-cabal" and others, PSF license.
26-
* `traceback2` by "Testing-cabal" and others, PSF license.
27-
* `six` by Benjamin Peterson and others, MIT license.
28-
* `functools` and `collections` by Python-dev and others, PSF license.

python_toolbox/cute_profile/profile_handling.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
import threading
55
import datetime as datetime_module
66
import marshal
7-
try:
8-
import pathlib
9-
except:
10-
from python_toolbox.third_party import pathlib
7+
import pathlib
118

129
import abc
1310
import pstats

python_toolbox/file_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Copyright 2009-2017 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
try:
5-
import pathlib
6-
except:
7-
from python_toolbox.third_party import pathlib
4+
import pathlib
85

96
import os
107
import re

python_toolbox/import_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
import imp
99
import zipimport
1010
import functools
11-
try:
12-
import pathlib
13-
except:
14-
from python_toolbox.third_party import pathlib
11+
import pathlib
1512

1613

1714
from python_toolbox import package_finder

python_toolbox/misc_tools/misc_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
'''This module defines miscellaneous tools that don't fit anywhere else.'''
55

66
import operator
7-
try:
8-
import pathlib
9-
except:
10-
from python_toolbox.third_party import pathlib
7+
import pathlib
118

129
import re
1310
import math

python_toolbox/package_finder.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
import os
1414
import types
1515
import pkgutil
16-
try:
17-
import pathlib
18-
except:
19-
from python_toolbox.third_party import pathlib
16+
import pathlib
2017

2118

2219
from python_toolbox import dict_tools

python_toolbox/path_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66
import sys
77
import os
8-
try:
9-
import pathlib
10-
except:
11-
from python_toolbox.third_party import pathlib
8+
import pathlib
129

1310
import glob
1411
import types

python_toolbox/sys_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66

77
import sys
8-
try:
9-
import pathlib
10-
except:
11-
from python_toolbox.third_party import pathlib
8+
import pathlib
129

1310
import io
1411

python_toolbox/temp_file_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66
import tempfile
77
import shutil
8-
try:
9-
import pathlib
10-
except ImportError:
11-
from python_toolbox.third_party import pathlib
8+
import pathlib
129

1310

1411
from python_toolbox import context_management

0 commit comments

Comments
 (0)