Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxcloud committed Aug 31, 2019
1 parent fdfad16 commit 51c134f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mytool.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def work_url(url,index=0,ifauto=1,with_md=0):
downloader.download_by_bytes(bytes,source_path)
is_to_png = index==2
if is_to_png:
#先判断source路径是否是acsii
#先判断source路径是否是ascii
is_ascii = all(ord(c) < 128 for c in source_path)
if not is_ascii:
new_source = psworkspace+str(int(time.time()))+"temp.png"
Expand Down Expand Up @@ -95,7 +95,7 @@ def work_file(source_path,index=0,ifauto=1,with_md=0):
else:
is_to_png = index==2
if is_to_png:
#先判断source路径是否是acsii
#先判断source路径是否是ascii
is_ascii = all(ord(c) < 128 for c in source_path)
if not is_ascii:
new_source = psworkspace+str(int(time.time()))+"temp.png"
Expand Down

0 comments on commit 51c134f

Please sign in to comment.