summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py2
1 files changed, 1 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