diff options
author | Greg Hudson <ghudson@mit.edu> | 2020-10-07 01:25:01 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2020-10-08 13:47:06 -0400 |
commit | ad1c56d9b7dc3ce37b50cb3d72ff98513bf84073 (patch) | |
tree | 7c09c8560f22a0a11898f49ccc9cb6d084b4933c /doc | |
parent | 90fedf8188fc47aa5a476a969af34671555df389 (diff) | |
download | krb5-ad1c56d9b7dc3ce37b50cb3d72ff98513bf84073.tar.gz |
Fix Python deprecation warnings
Address all warnings issued by "python -Werror::DeprecationWarning"
in the test suite and doc build, as of Python 3.8.2.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tools/doxybuilder_types.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tools/doxybuilder_types.py b/doc/tools/doxybuilder_types.py index bdab120d6..063ee4bdc 100644 --- a/doc/tools/doxybuilder_types.py +++ b/doc/tools/doxybuilder_types.py @@ -111,7 +111,7 @@ class DoxyTypes(object): # remove macros t_definition = re.sub('KRB5_CALLCONV_C', '', t_definition) t_definition = re.sub('KRB5_CALLCONV', '', t_definition) - t_definition = re.sub('\*', '\\*', t_definition) + t_definition = re.sub(r'\*', '\\*', t_definition) # handle fp if t_type[1].find('(') >= 0: t_type = (t_type[0],None) @@ -161,7 +161,7 @@ class DoxyTypes(object): # remove macros v_definition = re.sub('KRB5_CALLCONV_C', '', v_definition) v_definition = re.sub('KRB5_CALLCONV', '', v_definition) - v_definition = re.sub('\*', '\\*', v_definition) + v_definition = re.sub(r'\*', '\\*', v_definition) variable_descr = {'category': 'variable', 'definition': v_definition, @@ -193,7 +193,7 @@ class DoxyTypes(object): if prm_list is not None: prm_str = prm_str.join(prm_list) d_signature = " %s (%s) " % (d_name , prm_str) - d_signature = re.sub(', \)', ')', d_signature).strip() + d_signature = re.sub(r', \)', ')', d_signature).strip() if len(node.xpath('./initializer')) > 0: len_ref = len(node.xpath('./initializer/ref')) |