Skip to content

Fix flake8 [SF:bugs:402] #651

@chrisjsewell

Description

@chrisjsewell

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 :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions