MrBr-github / lshca

GNU General Public License v3.0
9 stars 6 forks source link

Move all string concatenations in code from `+` to `format()` #65

Open MrBr-github opened 2 years ago

MrBr-github commented 2 years ago

From net_port_dev_id = self._data_source.read_file_if_exists(self._sys_prefix + "/net/" + net + "/dev_id") To net_port_dev_id = self._data_source.read_file_if_exists("{}/net/{}/dev_id".format(self._sys_prefix, net))