Skip to content

Commit

Permalink
Remove last usage of six Python 2 compatibility layer (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste authored Jan 29, 2024
1 parent 2b3c7d0 commit 6c1d4df
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions parsl/app/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import logging
from tblib import Traceback

from six import reraise

from parsl.data_provider.files import File
from parsl.errors import ParslError

Expand Down Expand Up @@ -109,8 +107,6 @@ def __init__(self, e_type: type, e_value: BaseException, traceback: Optional[Tra

def reraise(self) -> None:

t = self.e_type

# the type is logged here before deserialising v and tb
# because occasionally there are problems deserialising the
# value (see #785, #548) and the fix is related to the
Expand All @@ -119,7 +115,7 @@ def reraise(self) -> None:

v = self.get_exception()

reraise(t, v, v.__traceback__)
raise v

def get_exception(self) -> BaseException:
v = self.e_value
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pyzmq>=17.1.2
typeguard>=2.10,<3
typing-extensions>=4.6,<5
six
globus-sdk
dill
tblib
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sphinx_rtd_theme
mypy==1.5.1
types-python-dateutil
types-requests
types-six
types-paramiko
mpi4py

Expand Down

0 comments on commit 6c1d4df

Please sign in to comment.