Skip to content

Commit 9501655

Browse files
committed
Use walrus operator to improve readability
1 parent 2931123 commit 9501655

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ version and build that automatically. This behavior is controlled via the
3434
`USE_EXTERNAL_CATCH2` cmake variable. It defaults to `AUTO` but can also be set
3535
to `ON` or `OFF` to fully control the desired behavior.
3636

37-
### Python > 3.6
37+
### Python >= 3.8
3838

3939
Check your Python version by doing:
4040

python/podio_gen/cpp_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def post_process(self, datamodel):
9999
self._prepare_iorules()
100100
self._create_selection_xml()
101101

102-
if datamodel["links"]:
103-
self._write_links_registration_file(datamodel["links"])
102+
if the_links := datamodel["links"]:
103+
self._write_links_registration_file(the_links)
104104
self._write_all_collections_header()
105105
self._write_cmake_lists_file()
106106

0 commit comments

Comments
 (0)