aboutsummaryrefslogtreecommitdiffstats
path: root/bin/oe/fetch.py
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-01-26 20:19:06 +0000
committerChris Larson <clarson@kergoth.com>2004-01-26 20:19:06 +0000
commit4121395d88f3ed384e68ca13d41aa99348c5b456 (patch)
tree08f85fda95eea6b900b7973033fa0870b8f49908 /bin/oe/fetch.py
parent06ab870f18faf432a6c541237c89ed16de1e6617 (diff)
downloadbitbake-4121395d88f3ed384e68ca13d41aa99348c5b456.tar.gz
Replacing B.has_key(A) calls with A in B.
Diffstat (limited to 'bin/oe/fetch.py')
-rw-r--r--bin/oe/fetch.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/oe/fetch.py b/bin/oe/fetch.py
index 7d5dacd20..36f71a162 100644
--- a/bin/oe/fetch.py
+++ b/bin/oe/fetch.py
@@ -111,7 +111,7 @@ class Wget(Fetch):
def localpath(url, d):
# strip off parameters
(type, host, path, user, pswd, parm) = oe.decodeurl(oe.data.expand(url, d))
- if parm.has_key("localpath"):
+ if "localpath" in parm:
# if user overrides local path, use it.
return parm["localpath"]
url = oe.encodeurl([type, host, path, user, pswd, {}])
@@ -182,19 +182,19 @@ class Cvs(Fetch):
def localpath(url, d):
(type, host, path, user, pswd, parm) = oe.decodeurl(oe.data.expand(url, d))
- if parm.has_key("localpath"):
+ if "localpath" in parm:
# if user overrides local path, use it.
return parm["localpath"]
- if not parm.has_key("module"):
+ if not "module" in parm:
raise MissingParameterError("cvs method needs a 'module' parameter")
else:
module = parm["module"]
- if parm.has_key('tag'):
+ if 'tag' in parm:
tag = parm['tag']
else:
tag = ""
- if parm.has_key('date'):
+ if 'date' in parm:
date = parm['date']
else:
date = ""
@@ -214,7 +214,7 @@ class Cvs(Fetch):
for loc in urls:
(type, host, path, user, pswd, parm) = oe.decodeurl(oe.data.expand(loc, localdata))
- if not parm.has_key("module"):
+ if not "module" in parm:
raise MissingParameterError("cvs method needs a 'module' parameter")
else:
module = parm["module"]
@@ -232,17 +232,17 @@ class Cvs(Fetch):
# setup cvs options
options = []
- if parm.has_key('tag'):
+ if 'tag' in parm:
tag = parm['tag']
else:
tag = ""
- if parm.has_key('date'):
+ if 'date' in parm:
date = parm['date']
else:
date = ""
- if parm.has_key("method"):
+ if "method" in parm:
method = parm["method"]
else:
method = "pserver"