Browse Source

fix for natsort_keygen partial warning in py 3.13

pull/1207/head
Ross McFarland 1 year ago
parent
commit
c8da94b91e
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      octodns/yaml.py

+ 3
- 1
octodns/yaml.py View File

@ -11,7 +11,9 @@ from yaml.representer import SafeRepresenter
from .context import ContextDict
_natsort_key = natsort_keygen()
# as of python 3.13 functools.partial is a method descriptor and must be wrapped
# in staticmethod() to preserve the behavior natsort is expecting it to have
_natsort_key = staticmethod(natsort_keygen())
class ContextLoader(SafeLoader):


Loading…
Cancel
Save