Skip to content

Commit

Permalink
Get rid of deprecated warning on py3 while retaining py2.7 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewphsmith committed Aug 28, 2019
1 parent 42a233e commit 4aec1a4
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 4aec1a4

Please sign in to comment.