| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f7b7eb6 commit 27b4efe
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -302,6 +302,7 @@ def _index_from_patch_format(cls, repo, stream): | |||
| 302 | 302 | diff_header = cls.re_header.match | |
| 303 | 303 | for diff in ('\n' + text).split('\ndiff --git')[1:]: | |
| 304 | 304 | header = diff_header(diff) | |
| 305 | + assert header is not None, "Failed to parse diff header from " % diff | ||
| 305 | 306 | ||
| 306 | 307 | a_path, b_path, similarity_index, rename_from, rename_to, \ | |
| 307 | 308 | old_mode, new_mode, new_file_mode, deleted_file_mode, \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -404,7 +404,7 @@ def exists(self): | |||
| 404 | 404 | self.config_reader.get('url') | |
| 405 | 405 | return True | |
| 406 | 406 | except cp.NoOptionError: | |
| 407 | - # we have the section at least ... | ||
| 407 | + # we have the section at least ... | ||
| 408 | 408 | return True | |
| 409 | 409 | except cp.NoSectionError: | |
| 410 | 410 | return False | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,7 +80,7 @@ def test_diff_interface(self): | |||
| 80 | 80 | for other in (None, commit.Index, commit.parents[0]): | |
| 81 | 81 | for paths in (None, "CHANGES", ("CHANGES", "lib")): | |
| 82 | 82 | for create_patch in range(2): | |
| 83 | - diff_index = diff_item.diff(other, paths, create_patch) | ||
| 83 | + diff_index = diff_item.diff(other=other, paths=paths, create_patch=create_patch) | ||
| 84 | 84 | assert isinstance(diff_index, DiffIndex) | |
| 85 | 85 | ||
| 86 | 86 | if diff_index: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,8 +97,8 @@ def _stamp_version(filename): | |||
| 97 | 97 | # "Development Status :: 1 - Planning", | |
| 98 | 98 | # "Development Status :: 2 - Pre-Alpha", | |
| 99 | 99 | # "Development Status :: 3 - Alpha", | |
| 100 | - "Development Status :: 4 - Beta", | ||
| 101 | - # "Development Status :: 5 - Production/Stable", | ||
| 100 | + # "Development Status :: 4 - Beta", | ||
| 101 | + "Development Status :: 5 - Production/Stable", | ||
| 102 | 102 | # "Development Status :: 6 - Mature", | |
| 103 | 103 | # "Development Status :: 7 - Inactive", | |
| 104 | 104 | "Environment :: Console", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments