Skip to content

Commit 9bb9a82

Browse files
author
CI user
committed
Merge remote-tracking branch 'origin/rel-3.46.0'
2 parents e173847 + c12b264 commit 9bb9a82

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

h2o-py/h2o/backend/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
connection will be used by all subsequent calls to ``h2o.`` functions. Currently, there is no effective way to
3737
have multiple connections to separate H2O servers open at the same time. Such facility may be added in the future.
3838
"""
39-
from distutils.version import StrictVersion
4039
import sys
4140

4241

h2o-py/h2o/plot/_matplotlib.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ def get_matplotlib_pyplot(server, raise_if_not_available=False):
33
try:
44
# noinspection PyUnresolvedReferences
55
import matplotlib
6-
from distutils.version import LooseVersion
7-
if server:
8-
if LooseVersion(matplotlib.__version__) <= LooseVersion("3.1"):
9-
matplotlib.use("Agg", warn=False)
10-
else: # Versions >= 3.2 don't have warn argument
11-
matplotlib.use("Agg")
6+
matplotlib.use("Agg")
127
try:
138
# noinspection PyUnresolvedReferences
149
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)