[Python-modules-team] Bug#906224: git-review: Fails to list reviews
Dimitri Savineau
savineau.dimitri at gmail.com
Wed Aug 15 19:11:15 BST 2018
Package: git-review
Version: 1.25.0-2
Followup-For: Bug #906224
For some reason the patch file contains a typo.
The encode value is of course utf-8 and not utf-6.
-- System Information:
Debian Release: 9.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-7-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages git-review depends on:
ii git 1:2.11.0-3+deb9u3
ii python 2.7.13-2
ii python-requests 2.12.4-1
git-review recommends no packages.
git-review suggests no packages.
-- no debconf information
-------------- next part --------------
--- /usr/lib/python2.7/dist-packages/git_review/cmd.py 2018-08-15 14:05:02.808835500 -0400
+++ /usr/lib/python2.7/dist-packages/git_review/cmd.py 2018-08-15 14:03:15.860846204 -0400
@@ -970,7 +970,7 @@
# case using the maximum value will result in extra blank lines appearing
# after each entry even when only one field exceeds the console width
for i in FIELDS[:-1]:
- review_field_width[i] = max(len(r[i]) for r in review_list)
+ review_field_width[i] = max(len(str(r[i])) for r in review_list)
review_field_width[len(FIELDS) - 1] = 1
review_field_format = " ".join([
@@ -991,7 +991,7 @@
# ((width1, value1), (width2, value2), ...) map.
formatted_fields = []
for (width, value) in zip(review_field_width, review_value):
- formatted_fields.extend([width, value.encode('utf-8')])
+ formatted_fields.extend([width, str(value).encode('utf-8')])
print(review_field_format % tuple(formatted_fields))
print("Found %d items for review" % len(reviews))
More information about the Python-modules-team
mailing list