Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4da2db8

Browse files
author
Umair Idris
committed
Use py2.6 supported str format
1 parent 4fe562c commit 4da2db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,8 +2263,8 @@ def get_default_filename(self):
22632263
# ensure non-existing filename in save dir
22642264
i = 1
22652265
while os.path.isfile(os.path.join(save_dir, default_filename)):
2266-
# attach numerical value to basename
2267-
default_filename = '{}-{}.{}'.format(default_basename, i, default_filetype)
2266+
# attach numerical count to basename
2267+
default_filename = '{0}-{1}.{2}'.format(default_basename, i, default_filetype)
22682268
i += 1
22692269

22702270
return default_filename

0 commit comments

Comments
 (0)