Skip to content

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

@HugeCH39

Description

@HugeCH39

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions