Skip to content

Commit 1bc33b0

Browse files
use !r in repr
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 5fe5e25 commit 1bc33b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/runfiles/runfiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def with_suffix(self, suffix: str) -> "Path":
243243
)
244244

245245
def __repr__(self) -> str:
246-
return 'runfiles.Path("{}")'.format(super().__str__())
246+
return 'runfiles.Path({!r})'.format(super().__str__())
247247

248248
def __str__(self) -> str:
249249
path_posix = super().__str__().replace("\\", "/")

0 commit comments

Comments
 (0)