8000 Fix flake8 [SF:bugs:402] · Issue #651 · chrisjsewell/docutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix flake8 [SF:bugs:402] #651

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

Open
chrisjsewell opened this issue Aug 9, 2020 · 0 comments
Open

Fix flake8 [SF:bugs:402] #651

chrisjsewell opened this issue Aug 9, 2020 · 0 comments

Comments

@chrisjsewell
Copy link
Owner

author: chrisjsewell
created: 2020-08-09 18:23:57.785000
assigned: None
SF_url: https://sourceforge.net/p/docutils/bugs/402

./docutils/writers/manpage.py:51:13: F821 undefined name 'xrange'


commenter: tk0miya
posted: 2020-08-09 18:32:27.502000
title: #402 Fix flake8

Did you read the code? It is a code only available under python2. And docutils has still supported it.

if sys.version_info < (3, 0):
    range = xrange

What are you expected?


commenter: chrisjsewell
posted: 2020-08-09 18:34:25.250000
title: #402 Fix flake8

What are you expected?

To add # noqa: F821


commenter: tk0miya
posted: 2020-08-09 18:37:34.950000
title: #402 Fix flake8

attachments:

Thanks! Here is a patch to fix it :-)


commenter: chrisjsewell
posted: 2020-08-09 18:38:10.329000
title: #402 Fix flake8

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0