| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,7 +233,7 @@ def rev_parse(repo: 'Repo', rev: str) -> Union['Commit', 'Tag', 'Tree', 'Blob']: | |||
| 233 | 233 | assert obj is not None | |
| 234 | 234 | ||
| 235 | 235 | if ref is not None: | |
| 236 | - obj = cast(Commit, ref.commit) | ||
| 236 | + obj = cast('Commit', ref.commit) | ||
| 237 | 237 | # END handle ref | |
| 238 | 238 | # END initialize obj on first token | |
| 239 | 239 | ||
@@ -347,8 +347,8 @@ def rev_parse(repo: 'Repo', rev: str) -> Union['Commit', 'Tag', 'Tree', 'Blob']: | |||
| 347 | 347 | # END end handle tag | |
| 348 | 348 | except (IndexError, AttributeError) as e: | |
| 349 | 349 | raise BadName( | |
| 350 | - "Invalid revision spec '%s' - not enough " | ||
| 351 | - "parent commits to reach '%s%i'" % (rev, token, num)) from e | ||
| 350 | + f"Invalid revision spec '{rev}' - not enough " | ||
| 351 | + f"parent commits to reach '{token}{int(num)}'") from e | ||
| 352 | 352 | # END exception handling | |
| 353 | 353 | # END parse loop | |
| 354 | 354 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments