##// END OF EJS Templates
run-tests: deal with distutil deprecation...
marmoute -
r50776:35bf7f23 default
parent child Browse files
Show More
@@ -48,7 +48,7 b' import argparse'
48 48 import collections
49 49 import contextlib
50 50 import difflib
51 import distutils.version as version
51
52 52 import errno
53 53 import functools
54 54 import json
@@ -72,6 +72,13 b' import unittest'
72 72 import uuid
73 73 import xml.dom.minidom as minidom
74 74
75 try:
76 # PEP 632 recommend the use of `packaging.version` to replace the
77 # deprecated `distutil.version`. So lets do it.
78 import packaging.version as version
79 except ImportError:
80 import distutils.version as version
81
75 82 if sys.version_info < (3, 5, 0):
76 83 print(
77 84 '%s is only supported on Python 3.5+, not %s'
General Comments 0
You need to be logged in to leave comments. Login now