]> git.baikalelectronics.ru Git - kernel.git/commit
tc: python3, string formattings
authorBTaskaya <batuhanosmantaskaya@gmail.com>
Fri, 23 Feb 2018 19:57:35 +0000 (22:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 18:31:22 +0000 (13:31 -0500)
commit5a04bf25574eb4867602bf5df759bcd7cd7c2486
tree393b09e2d1b05d3ff56b22d7385bc7726e72ce14
parentdc1ee1bae630bb9fe32f30f73e82f298b0e443fb
tc: python3, string formattings

This patch converts old type string formattings to new type string
formattings for adapting Linux Traffic Control (tc) unit testing suite
python3.

Linux Traffic Control (tc) unit testing suite's code quality improved is improved with this patch.
According to python documentation;
"The built-in string class provides the ability to do complex variable substitutions and
value formatting via the format() method described in PEP 3101. "
but the project was using old type formattings and new type string formattings together,
this patch's main purpose is converting all old types to new types.

Following files changed:
 1. tools/testing/selftests/tc-testing/tdc.py
 2. tools/testing/selftests/tc-testing/tdc_batch.py

Following PEP rules applied:
 1. PEP8 - Code Styling
 2. PEP3101 - Advanced Code Formatting

Signed-off-by: Batuhan Osman Taskaya <batuhanosmantaskaya@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tdc.py
tools/testing/selftests/tc-testing/tdc_batch.py