Skip to content

Commit 6ec6c9f

Browse files
committed
Fix for Python 3.10: don't compare to sys.version string
1 parent 8bf3d5e commit 6ec6c9f

File tree

1 file changed

+1
-1
lines changed
  • packages/python/plotly/_plotly_utils

1 file changed

+1
-1
lines changed

packages/python/plotly/_plotly_utils/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def iso_to_plotly_time_string(iso_string):
227227

228228
def template_doc(**names):
229229
def _decorator(func):
230-
if sys.version[:3] != "3.2":
230+
if not sys.version_info[:2] == (3, 2):
231231
if func.__doc__ is not None:
232232
func.__doc__ = func.__doc__.format(**names)
233233
return func

0 commit comments

Comments
 (0)