Bug#626532: python-apt: get_changelog doesn't work for Py3k
Package: python-apt
Version: 0.8.0~exp4
Severity: important
Tags: patch
With Py3k, there is an infinite loop inside of get_changelog.
It's a bytes vs. string issue I guess.
=== modified file 'apt/package.py'
--- apt/package.py 2011-04-12 13:23:17 +0000
+++ apt/package.py 2011-05-12 17:16:32 +0000
@@ -1142,7 +1142,7 @@
return u""
# Read changelog line by line
line_raw = changelog_file.readline()
- if line_raw == "":
+ if not line_raw:
break
# The changelog is encoded in utf-8, but since there isn't
# any http header, urllib2 seems to treat it as ascii
Reply to: