diff options
author | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2020-05-08 09:22:19 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-08 07:22:19 +0000 |
commit | c982307924709759aafaeca1b2a131644ad5adda (patch) | |
tree | 68e377b5d6c3f870cd77c0e8ad0b1cc20c3fbaf7 /tools | |
parent | 9bc0d04d8ac013fde102ec9740b57e7a4cf6bcd1 (diff) |
Update git submodules
* Update docs/submodules/integration.git from branch 'master'
to 7be9861d562abc762d65a4efd7cf49b493d70206
- Exclude code location from code base URL
Python method str.format allows easy templating using substitutions
identified by braces ('{' and '}'). Using two levels of nested
substitutions can be achieved by doubling braces ("{{" and "}}").
Hound configuration creator script was supposed to use two levels of
nested substitutions and still leave braced components within the
templated string for further substitution by the Hound tool. This would
require using multitude of braces which would decrease readability
significantly.
This is why code location template is appended to the code base URL at
the latest.
If there will be need for more levels of nested templates, this code
shall be further refactored to use only named fields, str.format_map()
(available in Python 3.2+) and SafeDict, e.g.
>>> class SafeDict(dict):
... def __missing__(self, key):
... return '{' + key + '}'
...
which would leave braced components within the processed template in
case given key is missing.
Issue-ID: ONAPARC-579
Change-Id: I420d076867aa891edb2a945a8cd58e168c892ac3
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions