Skip to content
Snippets Groups Projects
Commit 6a44733d authored by nkour's avatar nkour
Browse files

commented code, beautiful code

parent 21bba13b
No related branches found
No related tags found
No related merge requests found
......@@ -704,9 +704,9 @@ def get_os_info():
return 'N/A'
def sanitize_filename(filename):
'''makes sure the filename we try to write does not contain
unacceptable characters'''
filename = punycode_encode(filename)
'''makes sure the filename we will write does contain only
acceptable and latin characters'''
filename = punycode_encode(filename) # make it latin chars only
filename = filename.replace('/', '_')
if os.name == 'nt':
filename = filename.replace('?', '').replace(':', '').replace('!', '')\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment