Skip to content

Commit

Permalink
docs: fix deprecation warnings due to invalid escape sequences. (#996)
Browse files Browse the repository at this point in the history
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-api-python-client/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #995  馃
  • Loading branch information
tirkarthi committed Aug 3, 2020
1 parent cd4e8f4 commit 0f60eda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions describe.py
Expand Up @@ -226,7 +226,7 @@ def add_param(pname, desc):
parameters.append(pname)

for line in args:
m = re.search("^\s+([a-zA-Z0-9_]+): (.*)", line)
m = re.search(r"^\s+([a-zA-Z0-9_]+): (.*)", line)
if m is None:
desc += line
continue
Expand Down Expand Up @@ -284,7 +284,7 @@ def breadcrumbs(path, root_discovery):
display = p
if i == 0:
display = root_discovery.get("title", display)
crumbs.append('<a href="%s.html">%s</a>' % (prefix + p, display))
crumbs.append('<a href="{}.html">{}</a>'.format(prefix + p, display))
accumulated.append(p)

return " . ".join(crumbs)
Expand Down Expand Up @@ -407,7 +407,7 @@ def document_api(name, version, uri):
version = safe_version(version)

document_collection_recursive(
service, "%s_%s." % (name, version), discovery, discovery
service, "{}_{}.".format(name, version), discovery, discovery
)


Expand All @@ -427,7 +427,7 @@ def document_api_from_discovery_document(uri):
version = safe_version(discovery["version"])

document_collection_recursive(
service, "%s_%s." % (name, version), discovery, discovery
service, "{}_{}.".format(name, version), discovery, discovery
)


Expand Down

0 comments on commit 0f60eda

Please sign in to comment.