comparison sat/tools/common/files_utils.py @ 2624:56f94936df1e

code style reformatting using black
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 20:14:46 +0200
parents d78eff6b4487
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2623:49533de4540b 2624:56f94936df1e
28 @return (unicode): unique path (can be the same as path if there is not conflict) 28 @return (unicode): unique path (can be the same as path if there is not conflict)
29 """ 29 """
30 ori_path = path 30 ori_path = path
31 idx = 1 31 idx = 1
32 while os.path.exists(path): 32 while os.path.exists(path):
33 path = ori_path + u'_' + unicode(idx) 33 path = ori_path + u"_" + unicode(idx)
34 idx += 1 34 idx += 1
35 return path 35 return path