aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-17 15:40:51 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-19 16:36:45 +0100
commite88834fb7c6821cc29c12d296f2edd51f6eb3746 (patch)
tree60bb237a8e1c842475eb27c4cd15450032b41558 /lib/bb/fetch/__init__.py
parentc360b01df18d90a513a3d61d395f905102e7568e (diff)
downloadbitbake-e88834fb7c6821cc29c12d296f2edd51f6eb3746.tar.gz
fetch: be more pythonic
no functional changes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'lib/bb/fetch/__init__.py')
-rw-r--r--lib/bb/fetch/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index eb930bf2e..e5838ee68 100644
--- a/lib/bb/fetch/__init__.py
+++ b/lib/bb/fetch/__init__.py
@@ -656,9 +656,7 @@ class Fetch(object):
"""
Verify the md5sum we wanted with the one we got
"""
- wanted_sum = None
- if 'md5sum' in ud.parm:
- wanted_sum = ud.parm['md5sum']
+ wanted_sum = ud.parm.get('md5sum')
if not wanted_sum:
return True