Merge branch 'develop' of https://github.com/chideat/you-get into chideat-develop

This commit is contained in:
Mort Yao 2016-10-14 20:33:53 +02:00
commit 455e5b90d9
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -10,6 +10,7 @@ def legitimize(text, os=platform.system()):
text = text.translate({ text = text.translate({
0: None, 0: None,
ord('/'): '-', ord('/'): '-',
ord('|'): '-',
}) })
if os == 'Windows': if os == 'Windows':
@ -20,7 +21,6 @@ def legitimize(text, os=platform.system()):
ord('*'): '-', ord('*'): '-',
ord('?'): '-', ord('?'): '-',
ord('\\'): '-', ord('\\'): '-',
ord('|'): '-',
ord('\"'): '\'', ord('\"'): '\'',
# Reserved in Windows VFAT # Reserved in Windows VFAT
ord('+'): '-', ord('+'): '-',