Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ def open_spreadsheet(self, path, as_template=False):


class NameGenerator(object):
"""
r"""
Generates valid names for Open Office.

Keeps track of used names and does not return one value twice.
Expand All @@ -1954,7 +1954,7 @@ def __init__(self):

def __call__(self, name):
name = text_type(name)
for char in '[]*?:\/':
for char in r'[]*?:\/':
name = name.replace(char, '')
for i in itertools.count(1):
if name:
Expand Down