| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2382891 commit e7dec7d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | 8 | import enum | |
| 9 | 9 | import re | |
| 10 | + import warnings | ||
| 10 | 11 | ||
| 11 | 12 | from git.cmd import handle_process_output | |
| 12 | 13 | from git.compat import defenc | |
@@ -554,6 +555,11 @@ def renamed(self) -> bool: | |||
| 554 | 555 | This property is deprecated. | |
| 555 | 556 | Please use the :attr:`renamed_file` property instead. | |
| 556 | 557 | """ | |
| 558 | + warnings.warn( | ||
| 559 | + "Diff.renamed is deprecated, use Diff.renamed_file instead", | ||
| 560 | + DeprecationWarning, | ||
| 561 | + stacklevel=2, | ||
| 562 | + ) | ||
| 557 | 563 | return self.renamed_file | |
| 558 | 564 | ||
| 559 | 565 | @property | |
| Back | FazBrowse Home | New Git URL |
0 commit comments