mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-28 00:25:21 +01:00
encoding: encode before quote
setup: enable zip_safe=True again
This commit is contained in:
parent
ab8b4efaec
commit
e8c77c0538
@ -127,7 +127,7 @@ class CDXObject(OrderedDict):
|
|||||||
try:
|
try:
|
||||||
v.encode('ascii')
|
v.encode('ascii')
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
v = quote(v, safe=':/')
|
v = quote(v.encode('utf-8'), safe=':/')
|
||||||
|
|
||||||
self[n] = v
|
self[n] = v
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -47,7 +47,7 @@ setup(
|
|||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
license='GPL',
|
license='GPL',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
zip_safe=False,
|
zip_safe=True,
|
||||||
provides=[
|
provides=[
|
||||||
'pywb',
|
'pywb',
|
||||||
'pywb.utils',
|
'pywb.utils',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user