# separator. It is used then to split back the string to tags list.
SEPARATOR = chr(0x1F) # ASCII Unit Separator
+
def is_uuid4(uuid):
"""Controls MusicBrainz UUID4 format
return True
return False
+
class MetaException(Exception):
"""Generic Meta Exception"""
def wrapper(*args, **kwargs):
ans = func(*args, **kwargs)
if isinstance(ans, set):
- return {s.replace("'", r"\'") for s in ans}
- return ans.replace("'", r"\'")
+ return {s.replace("'", r"\'").replace('"', r'\"') for s in ans}
+ return ans.replace("'", r"\'").replace('"', r'\"')
return wrapper
@property
def names(self):
"""aliases + name"""
- return self.__aliases | {self.__name,}
+ return self.__aliases | {self.__name, }
@property
@serialize