more .format.
This commit is contained in:
parent
7ab4f756fe
commit
0aa2185ede
15 changed files with 41 additions and 49 deletions
|
@ -36,7 +36,7 @@ class NameGenerator(object):
|
|||
|
||||
for name_part in name_parts:
|
||||
part = random.choice(self.parts[name_part])
|
||||
name = name.replace("{%s}" % name_part, part)
|
||||
name = name.replace("{{}}".format(name_part), part)
|
||||
|
||||
return name
|
||||
|
||||
|
|
Reference in a new issue