|
28 | 28 | import os |
29 | 29 | import shlex |
30 | 30 | import sys |
31 | | -import logging |
32 | 31 | from typing import Any |
33 | 32 |
|
34 | 33 | # If extensions (or modules to document with autodoc) are in another directory, |
|
83 | 82 | root_doc = "index" |
84 | 83 |
|
85 | 84 | # General information about the project. |
86 | | -project = u"google-cloud-spanner" |
87 | | -copyright = u"2025, Google, LLC" |
88 | | -author = u"Google APIs" |
| 85 | +project = "google-cloud-spanner" |
| 86 | +copyright = "2025, Google, LLC" |
| 87 | +author = "Google APIs" |
89 | 88 |
|
90 | 89 | # The version info for the project you're documenting, acts as replacement for |
91 | 90 | # |version| and |release|, also used in various other places throughout the |
|
285 | 284 | ( |
286 | 285 | root_doc, |
287 | 286 | "google-cloud-spanner.tex", |
288 | | - u"google-cloud-spanner Documentation", |
| 287 | + "google-cloud-spanner Documentation", |
289 | 288 | author, |
290 | 289 | "manual", |
291 | 290 | ) |
|
386 | 385 | napoleon_use_param = True |
387 | 386 | napoleon_use_rtype = True |
388 | 387 |
|
| 388 | + |
389 | 389 | # Setup for sphinx behaviors such as warning filters. |
390 | 390 | class UnexpectedUnindentFilter(logging.Filter): |
391 | 391 | """Filter out warnings about unexpected unindentation following bullet lists.""" |
@@ -413,5 +413,5 @@ def setup(app: Any) -> None: |
413 | 413 | """ |
414 | 414 | # Sphinx's logger is hierarchical. Adding a filter to the |
415 | 415 | # root 'sphinx' logger will catch warnings from all sub-loggers. |
416 | | - logger = logging.getLogger('sphinx') |
| 416 | + logger = logging.getLogger("sphinx") |
417 | 417 | logger.addFilter(UnexpectedUnindentFilter()) |
0 commit comments