From fefcd30442d4582dba2ed2cdf3ae04f4acb61f91 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Mon, 4 Nov 2024 14:36:30 -0700 Subject: [PATCH] MNT: Fix a couple things found by pyupgrade Changes for >= 3.10. --- docs/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 458fa871e..1c772726c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # # This file is execfile()d with the current directory set to its # containing dir. @@ -47,7 +46,7 @@ }, 'examples_dirs': [os.path.join('..', 'examples')], 'gallery_dirs': ['examples'], - 'filename_pattern': '\.py', + 'filename_pattern': r'\.py', 'backreferences_dir': 'api/generated', 'default_thumb_file': os.path.join('_static', 'siphon_150x150_white_bg.png'), 'abort_on_example_error': True