| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2c52696 commit 03464d9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,7 @@ | |||
| 14 | 14 | from subprocess import Popen, PIPE | |
| 15 | 15 | import sys | |
| 16 | 16 | from time import altzone, daylight, localtime, time, timezone | |
| 17 | + import warnings | ||
| 17 | 18 | ||
| 18 | 19 | from gitdb import IStream | |
| 19 | 20 | ||
@@ -399,6 +400,11 @@ def trailers(self) -> Dict[str, str]: | |||
| 399 | 400 | Dictionary containing whitespace stripped trailer information. | |
| 400 | 401 | Only contains the latest instance of each trailer key. | |
| 401 | 402 | """ | |
| 403 | + warnings.warn( | ||
| 404 | + "Commit.trailers is deprecated, use Commit.trailers_list or Commit.trailers_dict instead", | ||
| 405 | + DeprecationWarning, | ||
| 406 | + stacklevel=2, | ||
| 407 | + ) | ||
| 402 | 408 | return {k: v[0] for k, v in self.trailers_dict.items()} | |
| 403 | 409 | ||
| 404 | 410 | @property | |
| Back | FazBrowse Home | New Git URL |
0 commit comments