Signed-off-by: shubhendra <withshubh@gmail.com>
@@ -88,7 +88,7 @@ class DownloadInfo: #pylint: disable=too-few-public-methods
if name in self._passthrough_properties:
return self._section_dict.get(name, fallback=None)
if name == 'hashes':
- hashes_dict = dict()
+ hashes_dict = {}
for hash_name in (*self._hashes, 'hash_url'):
value = self._section_dict.get(hash_name, fallback=None)
if value:
@@ -177,7 +177,7 @@ def main():
type=Path,
metavar='PATH',
action='append',
- default=list(),
+ default=[],
help=('File or directory to include in the root of the archive. Specify '
'multiple times to include multiple different items. '
'For zip files, these contents must only be regular files.'))
@@ -155,7 +155,7 @@ def merge_patches(source_iter, destination, prepend=False):
destination must not already exist, unless prepend is True. If prepend is True, then
the source patches will be prepended to the destination.
"""
- series = list()
+ series = []
known_paths = set()
if destination.exists():
if prepend: