mirror of
https://github.com/python/cpython.git
synced 2025-09-11 19:27:07 +00:00
Take care that filenames for .hqx files are ascii (no more mu's, etc)
This commit is contained in:
parent
0a72e8d4d2
commit
9bc4690e7c
1 changed files with 8 additions and 1 deletions
|
@ -57,7 +57,14 @@ def hexbincwprojects(creator):
|
|||
return
|
||||
for fss in project_files[creator]:
|
||||
srcfile = fss.as_pathname()
|
||||
dstfile = srcfile + '.hqx'
|
||||
|
||||
if srcfile[-1] == 'µ':
|
||||
dstfile = srcfile[:-1]+'mu.hqx'
|
||||
elif ord(srcfile[-1]) >= 128:
|
||||
dstfile = srcfile[:-1]+`ord(srcfile[-1])`+'.hqx'
|
||||
else:
|
||||
dstfile = srcfile + '.hqx'
|
||||
|
||||
if os.path.exists(dstfile) and \
|
||||
os.stat(dstfile)[8] > os.stat(srcfile)[8]:
|
||||
print 'Skip', dstfile,'- Up-to-date'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue