Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以在 README.md 里面添加一下对 Python 环境的要求 #5

Open
HugeCH38 opened this issue Apr 19, 2019 · 0 comments
Open

Comments

@HugeCH38
Copy link
Contributor

str 对象的 isascii 属性是 3.7 版本的 Python新增的。

image

官方文档

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant