Replace old formatting with new str.format()

This commit is contained in:
Nathan Baker
2020-05-27 20:55:44 -07:00
parent 6e7c188dbd
commit 3266521d31
7 changed files with 62 additions and 53 deletions

View File

@@ -58,7 +58,7 @@ class ConformationContainer:
# if a group is coupled and we are reading a .propka_input file, then
# some more configuration might be needed
map_ = make_interaction_map(
'Covalent coupling map for %s' % self,
'Covalent coupling map for {0:s}'.format(str(self)),
self.get_covalently_coupled_groups(),
lambda g1, g2: g1 in g2.covalently_coupled_groups)
info(map_)
@@ -100,7 +100,7 @@ class ConformationContainer:
self.set_common_charge_centres()
# print coupling map
map_ = make_interaction_map(
'Covalent coupling map for %s' % self,
'Covalent coupling map for {0:s}'.format(str(self)),
self.get_covalently_coupled_groups(),
lambda g1, g2: g1 in g2.covalently_coupled_groups)
info(map_)