"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Resource_Files/plugin_launchers/python/hrefutils.py" between
Sigil-1.4.1.tar.gz and Sigil-1.4.2.tar.gz

About: Sigil is a multi-platform EPUB ebook editor that supports both WYSIWYG and code-based editing of EPUB files, as well as the import of HTML and plain text files.

hrefutils.py  (Sigil-1.4.1):hrefutils.py  (Sigil-1.4.2)
skipping to change at line 161 skipping to change at line 161
return True; return True;
def urlencodepart(part): def urlencodepart(part):
if isinstance(part,bytes): if isinstance(part,bytes):
part = part.decode('utf-8') part = part.decode('utf-8')
result = [] result = []
for char in part: for char in part:
if need_to_percent_encode(char): if need_to_percent_encode(char):
bs = char.encode('utf-8') bs = char.encode('utf-8')
for b in bs: for b in bs:
result.append("%%%02x" % b) result.append("%%%02X" % b)
else: else:
result.append(char) result.append(char)
return ''.join(result) return ''.join(result)
def urldecodepart(part): def urldecodepart(part):
if isinstance(part,bytes): if isinstance(part,bytes):
part = part.decode('utf-8') part = part.decode('utf-8')
part = unquote(part) part = unquote(part)
return part return part
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)