Skip to content

Commit

Permalink
style: autoformat with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 11, 2024
1 parent c548c4e commit a2d8e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions copier/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ def normalize_git_path(path: str) -> str:


def escape_git_path(path: str) -> str:
"""Escape paths that will be used as literal gitwildmatch patterns.
The paths should be unescaped completely, as done by ``normalize_git_path``.
"""
Escape paths that will be used as literal gitwildmatch patterns.
The paths should be unescaped completely, as done by ``normalize_git_path``."""
# GitwWildMatchPattern.escape does not escape backslashes
# or trailing whitespace.
path = path.replace("\\", "\\\\")
Expand Down

0 comments on commit a2d8e9c

Please sign in to comment.