-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
str 对象的 isascii 属性是 3.7 版本的 Python新增的。
Traceback (most recent call last):
File "/home/tys1998/Tools/markdown-writing-with-mixed-cn-en/cnenlinter/venv/bin/cnenlinter", line 11, in <module>
load_entry_point('cnenlinter', 'console_scripts', 'cnenlinter')()
File "/home/tys1998/Tools/markdown-writing-with-mixed-cn-en/cnenlinter/venv/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/tys1998/Tools/markdown-writing-with-mixed-cn-en/cnenlinter/venv/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/tys1998/Tools/markdown-writing-with-mixed-cn-en/cnenlinter/venv/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/tys1998/Tools/markdown-writing-with-mixed-cn-en/cnenlinter/venv/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/tys1998/Tools/markdown-writing-with-mixed-cn-en/cnenlinter/cnenlinter.py", line 98, in cnenlinter
if not linted.isascii() or linted.startswith('#'):
AttributeError: 'str' object has no attribute 'isascii'
Metadata
Metadata
Assignees
Labels
No labels
