Skip to content

Commit 311f025

Browse files
committed
drop: py3.6- code
1 parent c0fbc45 commit 311f025

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

graphtik/network.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,6 @@
8282

8383
thread_pool: ContextVar[Pool] = ContextVar("thread_pool", default=Pool(7))
8484

85-
if sys.version_info < (3, 6):
86-
"""
87-
Consistently ordered variant of :class:`~networkx.DiGraph`.
88-
89-
PY3.6 has inmsertion-order dicts, but PY3.5 has not.
90-
And behvavior *and TCs) in these environments may fail spuriously!
91-
Still *subgraphs* may not patch!
92-
93-
Fix from:
94-
https://networkx.github.io/documentation/latest/reference/classes/ordered.html#module-networkx.classes.ordered
95-
"""
96-
from networkx import OrderedDiGraph as DiGraph
97-
9885

9986
class _DataNode(str):
10087
"""

test/test_plot.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ def _check_plt_img(img):
161161
def test_plot_matpotlib(pipeline, tmp_path):
162162
## Try matplotlib Window, but # without opening a Window.
163163

164-
if sys.version_info < (3, 5):
165-
# On PY< 3.5 it fails with:
166-
# nose.proxy.TclError: no display name and no $DISPLAY environment variable
167-
# eg https://travis-ci.org/ankostis/graphtik/jobs/593957996
168-
import matplotlib
169-
170-
matplotlib.use("Agg")
171164
# do not open window in headless travis
172165
img = pipeline.plot(show=-1)
173166
_check_plt_img(img)

0 commit comments

Comments
 (0)