Skip to content

Commit 767c6c7

Browse files
authored
Merge pull request #511 from xylar/fix_deploy
Fix deployment using python 2
2 parents f1662d9 + 79f63b2 commit 767c6c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conda/shared.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def backup_bashrc():
187187
files = ['.bashrc', '.bash_profile']
188188
for filename in files:
189189
src = os.path.join(home_dir, filename)
190-
dst = os.path.join(home_dir, f'{filename}.conda_bak')
190+
dst = os.path.join(home_dir, '{}.conda_bak'.format(filename))
191191
if os.path.exists(filename):
192192
shutil.copyfile(src, dst)
193193

@@ -196,7 +196,7 @@ def restore_bashrc():
196196
home_dir = os.path.expanduser('~')
197197
files = ['.bashrc', '.bash_profile']
198198
for filename in files:
199-
src = os.path.join(home_dir, f'{filename}.conda_bak')
199+
src = os.path.join(home_dir, '{}.conda_bak'.format(filename))
200200
dst = os.path.join(home_dir, filename)
201201
if os.path.exists(filename):
202202
shutil.move(src, dst)

0 commit comments

Comments
 (0)