@return: C{True} if the version has an epoch, C{False} otherwise
@rtype: C{bool}
"""
- return self._cp.has_key('Epoch')
+ return 'Epoch' in self._cp
@property
def author(self):
if self.info == None:
self._read_info()
- if self.info.has_key(key):
+ if key in self.info:
return self.info[key]
else:
return get_val() if get_val else None
if comp_type != 'auto':
comp_type = compressor_aliases.get(comp_type, comp_type)
- if not compressor_opts.has_key(comp_type):
+ if comp_type not in compressor_opts:
gbp.log.warn("Unknown compression type - guessing.")
comp_type = 'auto'
os.chdir(dirs['top'])
for d in [ 'tmp', 'download' ]:
- if dirs.has_key(d):
+ if d in dirs:
gbpc.RemoveTree(dirs[d])()
if not ret and not skipped:
gbp.log.err(err)
ret = 1
finally:
- if dirs.has_key('tmp'):
+ if 'tmp' in dirs:
gbpc.RemoveTree(dirs['tmp'])()
os.chdir(dirs['top'])