Skip to content

Commit

Permalink
Merge pull request flyteorg#8 from lyft/deprecated-inspect
Browse files Browse the repository at this point in the history
Use getfullargspec in Python 3 to avoid deprecation warnings
  • Loading branch information
matthewphsmith authored Aug 28, 2019
2 parents cfff269 + 4aec1a4 commit c25e0eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion flytekit/common/tasks/sdk_runnable.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from __future__ import absolute_import

from inspect import getargspec as _getargspec
try:
from inspect import getfullargspec as _getargspec
except ImportError:
from inspect import getargspec as _getargspec

import six as _six

Expand Down
5 changes: 4 additions & 1 deletion flytekit/common/tasks/spark_task.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from __future__ import absolute_import

from inspect import getargspec as _getargspec
try:
from inspect import getfullargspec as _getargspec
except ImportError:
from inspect import getargspec as _getargspec

import os as _os
import pyspark as _pyspark
Expand Down

0 comments on commit c25e0eb

Please sign in to comment.