wrapper.py (Sigil-1.4.1) | : | wrapper.py (Sigil-1.4.2) | ||
---|---|---|---|---|
skipping to change at line 52 | skipping to change at line 52 | |||
return p | return p | |||
return p.encode('utf-8', errors='replace') | return p.encode('utf-8', errors='replace') | |||
def _unicodestr(p): | def _unicodestr(p): | |||
if p is None: | if p is None: | |||
return None | return None | |||
if isinstance(p, str): | if isinstance(p, str): | |||
return p | return p | |||
return p.decode('utf-8', errors='replace') | return p.decode('utf-8', errors='replace') | |||
_launcher_version = 20201028 | _launcher_version = 20201117 | |||
_PKG_VER = re.compile(r'''<\s*package[^>]*version\s*=\s*["']([^'"]*)['"][^>]*>'' ', re.IGNORECASE) | _PKG_VER = re.compile(r'''<\s*package[^>]*version\s*=\s*["']([^'"]*)['"][^>]*>'' ', re.IGNORECASE) | |||
# Wrapper Class is used to peform record keeping for Sigil. It keeps track of m odified, | # Wrapper Class is used to peform record keeping for Sigil. It keeps track of m odified, | |||
# added, and deleted files while providing some degree of protection against fil es under | # added, and deleted files while providing some degree of protection against fil es under | |||
# Sigil's control from being directly manipulated. | # Sigil's control from being directly manipulated. | |||
# Uses "write-on-modify" and so removes the need for wholesale copying of files | # Uses "write-on-modify" and so removes the need for wholesale copying of files | |||
_guide_types = ['cover', 'title-page', 'toc', 'index', 'glossary', 'acknowledgem ents', | _guide_types = ['cover', 'title-page', 'toc', 'index', 'glossary', 'acknowledgem ents', | |||
'bibliography', 'colophon', 'copyright-page', 'dedication', | 'bibliography', 'colophon', 'copyright-page', 'dedication', | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |