Skip to content

Commit 2f5a290

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

File tree

1 file changed

+2
-3
lines changed
  • packages/python/plotly/_plotly_utils

1 file changed

+2
-3
lines changed

packages/python/plotly/_plotly_utils/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,8 @@ 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":
231-
if func.__doc__ is not None:
232-
func.__doc__ = func.__doc__.format(**names)
230+
if func.__doc__ is not None:
231+
func.__doc__ = func.__doc__.format(**names)
233232
return func
234233

235234
return _decorator

0 commit comments

Comments
 (0)