diff options
| author | Michael Johnson <johnsomor@gmail.com> | 2019-10-18 18:02:58 -0700 |
|---|---|---|
| committer | Michael Johnson <johnsomor@gmail.com> | 2019-10-18 18:11:44 -0700 |
| commit | dc6495cfa1c8e1dc95bad554a55f0b4e8e360abe (patch) | |
| tree | c198a067723a292c9ed9991a317d14d2278911d9 /taskflow/utils/misc.py | |
| parent | 9422017336af97c799c611930ddb9dfd0fb0e47b (diff) | |
| download | taskflow-dc6495cfa1c8e1dc95bad554a55f0b4e8e360abe.tar.gz | |
Update TaskFlow for networkx 2.x
The networkx 2.x series has been out for two years now and supports
python 3.6 and greater[1]. This patch updates TaskFlow to require
a minimum of networkx 2.1. It also updates the code to support
recent deprecation expiration introduced in the 2.4 release.
[1] https://networkx.github.io/documentation/stable/news.html
Change-Id: Ife31d353ba80824ebc63c8b21ee90943badc8da3
Diffstat (limited to 'taskflow/utils/misc.py')
| -rw-r--r-- | taskflow/utils/misc.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/taskflow/utils/misc.py b/taskflow/utils/misc.py index 123ff89..421449d 100644 --- a/taskflow/utils/misc.py +++ b/taskflow/utils/misc.py @@ -27,7 +27,6 @@ import threading import types import enum -import networkx as nx from oslo_serialization import jsonutils from oslo_serialization import msgpackutils from oslo_utils import encodeutils @@ -540,7 +539,3 @@ def safe_copy_dict(obj): return {} # default to a shallow copy to avoid most ownership issues return dict(obj) - - -def nx_version(): - return nx.__version__.split('.')[0] |
