mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Cosmetic fixes from PullRequest [2019-12-05]
This commit is contained in:
parent
8fcd74b14b
commit
6d0aa86cef
39 changed files with 247 additions and 222 deletions
|
|
@ -90,7 +90,7 @@ def check_iterable_type(name, value, expected_type, min_depth=1, max_depth=1):
|
|||
|
||||
# Get a string representation of the current index in case we raise an
|
||||
# exception.
|
||||
form = '[' + '{:d}, '*(len(index)-1) + '{:d}]'
|
||||
form = '[' + '{:d}, ' * (len(index)-1) + '{:d}]'
|
||||
ind_str = form.format(*index)
|
||||
|
||||
# What is the current item we are looking at?
|
||||
|
|
@ -109,7 +109,7 @@ def check_iterable_type(name, value, expected_type, min_depth=1, max_depth=1):
|
|||
index[-1] += 1
|
||||
|
||||
# If this item is not of the expected type, then it's either an error or
|
||||
# another level of the tree that we need to pursue deeper.
|
||||
# on a deeper level of the tree.
|
||||
else:
|
||||
if isinstance(current_item, Iterable):
|
||||
# The tree goes deeper here, let's explore it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue