summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-05-27 15:44:45 +0200
committerJulian Andres Klode <jak@debian.org>2011-05-27 15:44:45 +0200
commit48d0403a804e8185c5ca6e77660a80725404e7d8 (patch)
treee6286024cd775db1267c025479c244329a9d7797
parent3a731524efecb28ffaf1550c02d6175a67c2a644 (diff)
downloadpython-apt-48d0403a804e8185c5ca6e77660a80725404e7d8.tar.gz
Fix get_changelog in Python 3 (Closes: #626532)
-rw-r--r--apt/package.py2
-rw-r--r--debian/changelog4
2 files changed, 5 insertions, 1 deletions
diff --git a/apt/package.py b/apt/package.py
index 14e80594..00470ced 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -1142,7 +1142,7 @@ class Package(object):
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
diff --git a/debian/changelog b/debian/changelog
index f4038caa..f27bb797 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
python-apt (0.8.0~exp5) UNRELEASED; urgency=low
+ [ Julian Andres Klode ]
* Increase Breaks for update-notifier to 0.99.3debian9
* utils/get_debian_mirrors.py: Adjust for new Alioth SCM urls
* debian/control: Standards-Version 3.9.2
+ [ Tshepang Lekhonkhobe ]
+ * Fix get_changelog in Python 3 (Closes: #626532)
+
-- Julian Andres Klode <jak@debian.org> Thu, 26 May 2011 18:01:57 +0200
python-apt (0.8.0~exp4) experimental; urgency=low