Files @ 79ce82bdb06e
Branch filter:

Location: kallithea/dev_requirements.txt

Mads Kiilerich
feeds: fix failure getting feed for Git repos (Issue #372)

GitChangeset.diff() did
return ''.join(self.repository.get_diff(...))
even though get_diff returned a string. It worked, but was unnecessary and
inefficient.

That fails in py3: get_diff returns bytes ... and iterating doesn't give
characters but integers and we would get:
TypeError: sequence item 0: expected a bytes-like object, int found

Fixed by dropping the unnecessary iteration and joining.

This function is only used for feeds statistics.
1
2
3
4
5
6
7
8
9
pytest >= 4.6.6, < 5.4
pytest-sugar >= 0.9.2, < 0.10
pytest-benchmark >= 3.2.2, < 3.3
pytest-localserver >= 0.5.0, < 0.6
mock >= 3.0.0, < 4.1
Sphinx >= 1.8.0, < 2.4
WebTest >= 2.0.6, < 2.1
isort == 4.3.21
pyflakes == 2.1.1