Skip to content

Commit 54a56aa

Browse files
committed
Remove parens from dict construction for consistency
1 parent dd23633 commit 54a56aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

easybuild/tools/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def __init__(self, *args, **kwargs):
244244
# update or define go_configfiles_initenv in named arguments to pass to parent constructor
245245
go_cfg_initenv = kwargs.setdefault('go_configfiles_initenv', {})
246246
for section, constants in self.go_cfg_constants.items():
247-
constants = {name: value for (name, (value, _)) in constants.items()}
247+
constants = {name: value for name, (value, _) in constants.items()}
248248
go_cfg_initenv.setdefault(section, {}).update(constants)
249249

250250
super(EasyBuildOptions, self).__init__(*args, **kwargs)

test/framework/filetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def test_checksums(self):
320320
self.assertErrorRegex(EasyBuildError, error_pattern, ft.verify_checksum, fp, checksum)
321321

322322
# make sure faulty checksums are reported
323-
broken_checksums = {typ: (val[:-3] + 'foo') for (typ, val) in known_checksums.items()}
323+
broken_checksums = {typ: (val[:-3] + 'foo') for typ, val in known_checksums.items()}
324324
for checksum_type, checksum in broken_checksums.items():
325325
self.assertFalse(ft.compute_checksum(fp, checksum_type=checksum_type) == checksum)
326326
self.assertFalse(ft.verify_checksum(fp, (checksum_type, checksum)))

0 commit comments

Comments
 (0)