No reason to escape slashes. MANIFEST.in needs a newline.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
include toml.py
|
||||
include setup.py
|
||||
include README.md
|
||||
include LICENSE
|
||||
include README.rst
|
||||
include LICENSE
|
||||
|
||||
4
toml.py
4
toml.py
@@ -415,8 +415,8 @@ def dump_value(v):
|
||||
retval += "]"
|
||||
return retval
|
||||
if isinstance(v, (str, unicode)):
|
||||
escapes = ['\\', '0', 'b', 'f', '/', 'n', 'r', 't', '"']
|
||||
escapedchars = ['\\', '\0', '\b', '\f', '/', '\n', '\r', '\t', '\"']
|
||||
escapes = ['\\', '0', 'b', 'f', 'n', 'r', 't', '"']
|
||||
escapedchars = ['\\', '\0', '\b', '\f', '\n', '\r', '\t', '\"']
|
||||
for i in range(len(escapes)):
|
||||
v = v.replace(escapedchars[i], "\\"+escapes[i])
|
||||
return str('"'+v+'"')
|
||||
|
||||
Reference in New Issue
Block a user