summaryrefslogtreecommitdiff
path: root/gbp/deb/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/deb/control.py')
-rw-r--r--gbp/deb/control.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/deb/control.py b/gbp/deb/control.py
index a4cef2fa..4ac12ccd 100644
--- a/gbp/deb/control.py
+++ b/gbp/deb/control.py
@@ -50,7 +50,7 @@ class Control(object):
with open(filename) as f:
control = email.message_from_file(f)
- if not control.items():
+ if not list(control.items()):
raise ParseControlError("Empty or invalid control file or contents")
self._control = control