Unify string formatting
Use one way of string formatting: replace old `%` style with new `str.format`. Resolve #855.
This commit is contained in:
parent
f984a918b9
commit
4c2d273f07
17 changed files with 67 additions and 65 deletions
|
|
@ -65,7 +65,7 @@ class Shell:
|
|||
def _init_environment(self):
|
||||
self.env = os.environ.copy()
|
||||
additional_env = {
|
||||
'PATH': "%s:%s" % (self.local.bin_path, os.environ['PATH']),
|
||||
'PATH': "{}:{}".format(self.local.bin_path, os.environ['PATH']),
|
||||
# for use in type emulator
|
||||
'__cdist_type_base_path': self.local.type_path,
|
||||
'__cdist_manifest': "cdist shell",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue