From 6ec6c9fb360173558116e8ab044c2657242f9a45 Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 16 Jan 2020 07:51:14 +0200 Subject: [PATCH] Fix for Python 3.10: don't compare to sys.version string --- packages/python/plotly/_plotly_utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/_plotly_utils/utils.py b/packages/python/plotly/_plotly_utils/utils.py index d0d43134a48..9eeb7efa47f 100644 --- a/packages/python/plotly/_plotly_utils/utils.py +++ b/packages/python/plotly/_plotly_utils/utils.py @@ -227,7 +227,7 @@ def iso_to_plotly_time_string(iso_string): def template_doc(**names): def _decorator(func): - if sys.version[:3] != "3.2": + if not sys.version_info[:2] == (3, 2): if func.__doc__ is not None: func.__doc__ = func.__doc__.format(**names) return func